Changeset 1b20da0 in mainline for uspace/lib/posix/src/fnmatch.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/fnmatch.c
rdf6ded8 r1b20da0 37 37 * of adding POSIX-like locale support to the system in the future. Functions 38 38 * that are only necessary for locale support currently simply use single 39 * characters for "collation elements". 39 * characters for "collation elements". 40 40 * When (or if) locales are properly implemented, extending this implementation 41 41 * will be fairly straightforward. … … 194 194 /** 195 195 * Compare function for binary search in the _char_classes array. 196 * 196 * 197 197 * @param key Key of the searched element. 198 198 * @param elem Element of _char_classes array. … … 207 207 /** 208 208 * Returns whether the given character belongs to the specified character class. 209 * 209 * 210 210 * @param cname Name of the character class. 211 211 * @param c Character. … … 231 231 * Tries to parse an initial part of the pattern as a character class pattern, 232 232 * and if successful, matches the beginning of the given string against the class. 233 * 233 * 234 234 * @param pattern Pointer to the pattern to match. Must begin with a class 235 235 * specifier and is repositioned to the first character after the specifier … … 257 257 * Reads the next collating element in the pattern, taking into account 258 258 * locale (if supported) and flags (see fnmatch()). 259 * 259 * 260 260 * @param pattern Pattern. 261 261 * @param flags Flags given to fnmatch(). … … 309 309 * Matches the beginning of the given string against a bracket expression 310 310 * the pattern begins with. 311 * 311 * 312 312 * @param pattern Pointer to the beginning of a bracket expression in a pattern. 313 313 * On success, the pointer is moved to the first character after the … … 405 405 * Matches a portion of the pattern containing no asterisks (*) against 406 406 * the given string. 407 * 407 * 408 408 * @param pattern Pointer to the unmatched portion of the pattern. 409 409 * On success, the pointer is moved to the first asterisk, or to the … … 508 508 /** 509 509 * Match string against a pattern. 510 * 510 * 511 511 * @param pattern Pattern. 512 512 * @param string String to match. … … 571 571 /** 572 572 * Transform the entire string to lowercase. 573 * 573 * 574 574 * @param s Input string. 575 575 * @return Newly allocated copy of the input string with all uppercase
Note:
See TracChangeset
for help on using the changeset viewer.