Home | History | Annotate | Download | only in foundation

Lines Matching refs:len

23 int AStringUtils::Compare(const char *a, const char *b, size_t len, bool ignoreCase) {
24 // this method relies on a trailing '\0' if a or b are shorter than len
25 return ignoreCase ? strncasecmp(a, b, len) : strncmp(a, b, len);
38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) {
50 size_t len = globIx - start;
55 if (ix + len > strLen) {
58 const char *tail = str + strLen - len;
59 return !Compare(tail, pattern, len, ignoreCase);
62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) {
65 if (ix + len > strLen) {
68 ix += len;