Lines Matching full:string
3 * linux/lib/string.c
10 * as inline code in <asm-xx/string.h>
24 #include <linux/string.h>
38 * strncasecmp - Case insensitive, length-limited string comparison
39 * @s1: One string
40 * @s2: The other string
84 * strcpy - Copy a %NUL terminated string
85 * @dest: Where to copy the string to
86 * @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
321 * strncat - Append a length-limited, C-string to another
322 * @dest: The string to be appended to
323 * @src: The string to append to it
350 * strlcat - Append a length-limited, C-string to another
351 * @dest: The string to be appended to
352 * @src: The string to append to it
378 * @cs: One string
379 * @ct: Another string
402 * @cs: One string
403 * @ct: Another string
426 * strchr - Find the first occurrence of a character in a string
427 * @s: The string to be searched
430 * Note that the %NUL-terminator is considered part of the string, and can
445 * strchrnul - Find and return a character in a string, or end of string
446 * @s: The string to be searched
462 * strnchrnul - Find and return a character in a length limited string,
463 * or end of string
464 * @s: The string to be searched
469 * then return a pointer to the last character of the string.
480 * strrchr - Find the last occurrence of a character in a string
481 * @s: The string to be searched
498 * strnchr - Find a character in a length limited string
499 * @s: The string to be searched
503 * Note that the %NUL-terminator is considered part of the string, and can
521 * @str: The string to be stripped.
535 * @s: The string to be stripped.
538 * in the given string @s. Returns a pointer to the first non-whitespace
561 * strlen - Find the length of a string
562 * @s: The string to be sized
577 * strnlen - Find the length of a length-limited string
578 * @s: The string to be sized
595 * @s: The string to be searched
596 * @accept: The string to search for
622 * @s: The string to be searched
623 * @reject: The string to avoid
646 * @cs: The string to be searched
666 * strsep - Split a string into tokens
667 * @s: The string to be searched
695 * @s1: one string
696 * @s2: another string
699 * NUL and newline-then-NUL as equivalent string terminations. It's
721 * match_string - matches given string in an array
724 * @string: string to match with
726 * This routine will look for a string in an array of strings up to the
735 * index of a @string in the @array if matches, or %-EINVAL otherwise.
737 int match_string(const char * const *array, size_t n, const char *string) in match_string() argument
746 if (!strcmp(item, string)) in match_string()
755 * __sysfs_match_string - matches given string in an array
758 * @str: string to match with
763 * This routine will look for a string in an array of strings up to the
996 * strstr - Find the first substring in a %NUL terminated string
997 * @s1: The string to be searched
998 * @s2: The string to search for
1021 * strnstr - Find the first substring in a length-limited string
1022 * @s1: The string to be searched
1023 * @s2: The string to search for
1134 * strreplace - Replace all occurrences of character in string.
1135 * @s: The string to operate on.