Home | History | Annotate | Download | only in utils

Lines Matching refs:suffix

5 static uint16_t* concat_to_16(const char src[], const char suffix[])
8 size_t len2 = 3 + (suffix ? strlen(suffix) : 0);
18 if (suffix)
20 while (*suffix)
21 dst[i++] = *suffix++;
45 SkOSFile::Iter::Iter(const char path[], const char suffix[]) : fHandle(0), fPath16(nil)
47 this->reset(path, suffix);
57 void SkOSFile::Iter::reset(const char path[], const char suffix[])
68 fPath16 = concat_to_16(path, suffix);
141 SkOSFile::Iter::Iter(const char path[], const char suffix[]) : fDIR(0)
143 this->reset(path, suffix);
152 void SkOSFile::Iter::reset(const char path[], const char suffix[])
164 fSuffix.set(suffix);
170 // returns true if suffix is empty, or if str ends with suffix
171 static bool issuffixfor(const SkString& suffix, const char str[])
173 size_t suffixLen = suffix.size();
178 memcmp(suffix.c_str(), str + strLen - suffixLen, suffixLen) == 0;