Lines Matching +full:case +full:- +full:sensitive

2 // Use of this source code is governed by a BSD-style license that can be
30 // C standard-library functions that aren't cross-platform are provided as
32 // then implemented as inline calls to the platform-specific equivalents in the
33 // platform-specific headers.
35 // Wrapper for vsnprintf that always null-terminates and always returns the
60 // BSD-style safe and consistent string copy functions.
62 // Copies at most |dst_size|-1 characters, and always NULL terminates |dst|, as
76 // - 's' and 'c' without an 'l' length modifier. %s and %c operate on char
79 // - 'S' and 'C', which operate on wchar_t data on all systems except Windows,
82 // - 'F', which is not identified by Windows wprintf documentation.
83 // - 'D', 'O', and 'U', which are deprecated and not available on all systems.
92 // ASCII-specific tolower. The standard library's tolower is locale sensitive,
95 return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c; in ToLowerASCII()
98 return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c; in ToLowerASCII()
101 // ASCII-specific toupper. The standard library's toupper is locale sensitive,
104 return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c; in ToUpperASCII()
107 return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c; in ToUpperASCII()
110 // Converts the given string to it's ASCII-lowercase equivalent.
114 // Converts the given string to it's ASCII-uppercase equivalent.
118 // Functor for case-insensitive ASCII comparisons for STL algorithms like
122 // because case mappings might change the number of characters, depend on
123 // context (combining accents), and require handling UTF-16. If you need
133 // Like strcasecmp for case-insensitive ASCII characters only. Returns:
134 // -1 (a < b)
137 // (unlike strcasecmp which can return values greater or less than 1/-1). For
143 // Equality for ASCII case-insensitive comparisons. For full Unicode support,
156 // Therefore, DO NOT USE THESE AS A GENERAL-PURPOSE SUBSTITUTE FOR DEFAULT
157 // CONSTRUCTORS. There is only one case where you should use these: functions
159 // accessor), and don't have an empty string to use (e.g. in an error case).
166 // encoding. Null-terminated. The ASCII versions are the whitespaces as defined
173 // Null-terminated string representing the UTF-8 byte order mark.
177 // if any characters were removed. |remove_chars| must be null-terminated.
189 // |replace_chars| must be null-terminated.
208 // The 8-bit version only works on 8-bit characters, not UTF-8.
211 // the normal usage to trim in-place).
228 // Truncates a string to the nearest UTF-8 character that will leave
275 // string be 8-bit or UTF8? It contains only characters that are < 256 (in the
276 // first case) or characters that use only 8-bits and whose 8-bit
277 // representation looks like a UTF-8 string (the second case).
280 // valid but also if it doesn't contain any non-character codepoint
283 // there's a use case for just checking the structural validity, we have to
287 // if it is not the case.
298 // Compare the lower-case form of the given string against the given
299 // previously-lower-cased ASCII string (typically a constant).
305 // Performs a case-sensitive string compare of the given 16-bit string against
306 // the given 8-bit ASCII string (typically a constant). The behavior is
310 // Indicates case sensitivity of comparisons. Only ASCII case insensitivity
311 // is supported. Full Unicode case-insensitive conversions would need to go in
314 // If you need to do Unicode-aware case-insensitive StartsWith/EndsWith, it's
317 // the results to a case-sensitive comparison.
319 SENSITIVE, enumerator
359 // '4' -> 4
360 // 'a' -> 10
361 // 'B' -> 11
368 // Return a byte string in human-readable format with a unit suffix. Not
405 // sets the size of |str| to |length_with_null - 1| characters, and returns a
408 // the caller wants the data to be managed by a string-like object. It is
413 // would have size 0, and trying to access &((*str)[0]) in that case can result
416 // Internally, this takes linear time because the resize() call 0-fills the
418 // (|length_with_null - 1| * sizeof(string_type::value_type)) bytes. Ideally we
436 // Replace $1-$2-$3..$9 in the format string with |a|-|b|-|c|..|i| respectively.
438 // number less one. Eg $$->$, $$$->$$, etc. The offsets parameter here can be
450 // Single-string shortcut for ReplaceStringHolders. |offset| may be NULL.