• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:string

24 #include <string.h>
119 Create new string.
121 @param size Size of new string.
122 @return Pointer to string, or NULL if allocation failed.
134 Destroy string.
136 @param string String to be freed.
140 TRIO_ARGS1((string),
141 char *string)
143 if (string)
145 TRIO_FREE(string);
151 Count the number of characters in a string.
153 @param string String to measure.
154 @return Number of characters in @string.
158 TRIO_ARGS1((string),
159 TRIO_CONST char *string)
161 return strlen(string);
169 @param target Target string.
170 @param source Source string.
174 contain the @p target string and @p source string.
196 @param target Target string.
198 @param source Source string.
202 contain the @p target string and the @p source string (at most @p max
233 Determine if a string contains a substring.
235 @param string String to be searched.
241 TRIO_ARGS2((string, substring),
242 TRIO_CONST char *string,
245 assert(string);
248 return (0 != strstr(string, substring));
257 @param target Target string.
258 @param source Source string.
262 contain the @p source string.
285 @param target Target string.
287 @param source Source string.
291 contain the @p source string (at most @p max characters).
326 /* Make room for string plus a terminating zero */
340 @param source Source string.
341 @return A copy of the @p source string.
358 @param source Source string.
360 @return A copy of the @p source string.
387 @param first First string.
388 @param second Second string.
426 @param first First string.
427 @param second Second string.
453 @param first First string.
455 @param second Second string.
482 @param first First string.
483 @param second Second string.
508 @param first First string.
510 @param second Second string.
585 @param target Target string.
587 @param format Formatting string.
591 The formatting string accepts the same specifiers as the standard C
614 Calculate a hash value for a string.
616 @param string String to be calculated on.
625 TRIO_ARGS2((string, type),
626 TRIO_CONST char *string,
632 assert(string);
637 while ( (ch = *string++) != NIL )
654 Find first occurrence of a character in a string.
656 @param string String to be searched.
662 TRIO_ARGS2((string, character),
663 TRIO_CONST char *string,
666 assert(string);
668 return strchr(string, character);
675 Find last occurrence of a character in a string.
677 @param string String to be searched.
683 TRIO_ARGS2((string, character),
684 TRIO_CONST char *string,
687 assert(string);
689 return strchr(string, character);
696 Convert the alphabetic letters in the string to lower-case.
717 @param string String to be searched.
729 TRIO_ARGS2((string, pattern),
730 TRIO_CONST char *string,
733 assert(string);
736 for (; ('*' != *pattern); ++pattern, ++string)
738 if (NIL == *string)
742 if ((trio_to_upper((int)*string) != trio_to_upper((int)*pattern))
754 if ( trio_match(string, &pattern[1]) )
759 while (*string++);
770 @param string String to be searched.
782 TRIO_ARGS2((string, pattern),
783 TRIO_CONST char *string,
786 assert(string);
789 for (; ('*' != *pattern); ++pattern, ++string)
791 if (NIL == *string)
795 if ((*string != *pattern)
807 if ( trio_match_case(string, &pattern[1]) )
812 while (*string++);
821 Execute a function on each character in string.
823 @param target Target string.
824 @param source Source string.
853 Search for a substring in a string.
855 @param string String to be searched.
857 @return Pointer to first occurrence of @p substring in @p string, or NULL
862 TRIO_ARGS2((string, substring),
863 TRIO_CONST char *string,
866 assert(string);
869 return strstr(string, substring);
876 Search for a substring in the first @p max characters of a string.
878 @param string String to be searched.
881 @return Pointer to first occurrence of @p substring in @p string, or NULL
886 TRIO_ARGS3((string, max, substring),
887 TRIO_CONST char *string,
895 assert(string);
903 if (trio_equal_max(substring, size, &string[count]))
905 result = (char *)&string[count];
917 Tokenize string.
919 @param string String to be tokenized.
923 @warning @p string will be destroyed.
927 TRIO_ARGS2((string, delimiters),
928 char *string,
933 return strtok(string, delimiters);
939 Convert string to floating-point number.
942 @param endp Pointer to end of the converted string.
1087 Convert string to floating-point number.
1090 @param endp Pointer to end of the converted string.
1110 Convert string to floating-point number.
1113 @param endp Pointer to end of the converted string.
1134 Convert string to signed integer.
1136 @param string String to be converted.
1137 @param endp Pointer to end of converted string.
1142 TRIO_ARGS3((string, endp, base),
1143 TRIO_CONST char *string,
1147 assert(string);
1150 return strtol(string, endp, base);
1183 Convert string to unsigned integer.
1185 @param string String to be converted.
1186 @param endp Pointer to end of converted string.
1191 TRIO_ARGS3((string, endp, base),
1192 TRIO_CONST char *string,
1196 assert(string);
1199 return strtoul(string, endp, base);
1231 Convert the alphabetic letters in the string to upper-case.
1233 @param target The string to be converted.
1284 * The size of the string will be increased by 'delta' characters. If
1316 * The size of the string will be increased to 'length' plus one characters.
1318 * used (that is, the size of the string is never decreased).
1336 Create a new dynamic string.
1339 @return Newly allocated dynamic string, or NULL if memory allocation failed.
1369 Deallocate the dynamic string and its contents.
1371 @param self Dynamic string
1392 @param self Dynamic string.
1400 number of characters from the ending of the string, starting at the
1445 @return Content of dynamic string.
1447 The content is removed from the dynamic string. This enables destruction
1448 of the dynamic string without deallocation of the content.
1469 Set the content of the dynamic string.
1474 Sets the content of the dynamic string to a copy @p buffer.
1523 Append the second string to the first.
1525 @param self Dynamic string to be modified.
1526 @param other Dynamic string to copy from.
1610 @param self Dynamic string to be modified.
1611 @param other Dynamic string to copy from.