Lines Matching full:string
3 * linux/lib/string.c
10 * as inline code in <asm-xx/string.h>
24 #include <linux/string.h>
39 * strncasecmp - Case insensitive, length-limited string comparison
40 * @s1: One string
41 * @s2: The other string
85 * strcpy - Copy a %NUL terminated string
86 * @dest: Where to copy the string to
87 * @src: Where to copy the string from
102 * strncpy - Copy a length-limited, C-string
103 * @dest: Where to copy the string to
104 * @src: Where to copy the string from
131 * strlcpy - Copy a C-string into a sized buffer
132 * @dest: Where to copy the string to
133 * @src: Where to copy the string from
137 * NUL-terminated string that fits in the buffer (unless,
157 * strscpy - Copy a C-string into a sized buffer
158 * @dest: Where to copy the string to
159 * @src: Where to copy the string from
162 * Copy the string, or as much of it as fits, into the dest buffer. The
163 * behavior is undefined if the string buffers overlap. The destination
167 * from the src string beyond the specified "count" bytes, and since
169 * In addition, the implementation is robust to the string changing out
172 * Preferred to strncpy() since it always returns a valid string, and
242 * strscpy_pad() - Copy a C-string into a sized buffer
243 * @dest: Where to copy the string to
244 * @src: Where to copy the string from
247 * Copy the string, or as much of it as fits, into the dest buffer. The
248 * behavior is undefined if the string buffers overlap. The destination
251 * If the source string is shorter than the destination buffer, zeros
276 * stpcpy - copy a string from src to dest returning a pointer to the new end
278 * @dest: pointer to end of string being copied into. Must be large enough
280 * @src: pointer to the beginning of string being copied from. Must not overlap
301 * strcat - Append one %NUL-terminated string to another
302 * @dest: The string to be appended to
303 * @src: The string to append to it
320 * strncat - Append a length-limited, C-string to another
321 * @dest: The string to be appended to
322 * @src: The string to append to it
349 * strlcat - Append a length-limited, C-string to another
350 * @dest: The string to be appended to
351 * @src: The string to append to it
377 * @cs: One string
378 * @ct: Another string
400 * @cs: One string
401 * @ct: Another string
424 * strchr - Find the first occurrence of a character in a string
425 * @s: The string to be searched
428 * Note that the %NUL-terminator is considered part of the string, and can
443 * strchrnul - Find and return a character in a string, or end of string
444 * @s: The string to be searched
460 * strnchrnul - Find and return a character in a length limited string,
461 * or end of string
462 * @s: The string to be searched
467 * then return a pointer to the last character of the string.
478 * strrchr - Find the last occurrence of a character in a string
479 * @s: The string to be searched
496 * strnchr - Find a character in a length limited string
497 * @s: The string to be searched
501 * Note that the %NUL-terminator is considered part of the string, and can
519 * @str: The string to be stripped.
533 * @s: The string to be stripped.
536 * in the given string @s. Returns a pointer to the first non-whitespace
559 * strlen - Find the length of a string
560 * @s: The string to be sized
575 * strnlen - Find the length of a length-limited string
576 * @s: The string to be sized
593 * @s: The string to be searched
594 * @accept: The string to search for
620 * @s: The string to be searched
621 * @reject: The string to avoid
644 * @cs: The string to be searched
664 * strsep - Split a string into tokens
665 * @s: The string to be searched
693 * @s1: one string
694 * @s2: another string
697 * NUL and newline-then-NUL as equivalent string terminations. It's
719 * match_string - matches given string in an array
722 * @string: string to match with
724 * This routine will look for a string in an array of strings up to the
733 * index of a @string in the @array if matches, or %-EINVAL otherwise.
735 int match_string(const char * const *array, size_t n, const char *string) in match_string() argument
744 if (!strcmp(item, string)) in match_string()
753 * __sysfs_match_string - matches given string in an array
756 * @str: string to match with
761 * This routine will look for a string in an array of strings up to the
1008 * strstr - Find the first substring in a %NUL terminated string
1009 * @s1: The string to be searched
1010 * @s2: The string to search for
1033 * strnstr - Find the first substring in a length-limited string
1034 * @s1: The string to be searched
1035 * @s2: The string to search for
1146 * strreplace - Replace all occurrences of character in string.
1147 * @s: The string to operate on.