Home | History | Annotate | Download | only in utils

Lines Matching refs:suffix

12 static uint16_t* concat_to_16(const char src[], const char suffix[])
15 size_t len2 = 3 + (suffix ? strlen(suffix) : 0);
25 if (suffix)
27 while (*suffix)
28 dst[i++] = *suffix++;
53 SkOSFile::Iter::Iter(const char path[], const char suffix[]) : fHandle(0), fPath16(NULL)
55 this->reset(path, suffix);
65 void SkOSFile::Iter::reset(const char path[], const char suffix[])
76 fPath16 = concat_to_16(path, suffix);
149 SkOSFile::Iter::Iter(const char path[], const char suffix[]) : fDIR(0)
151 this->reset(path, suffix);
160 void SkOSFile::Iter::reset(const char path[], const char suffix[])
172 fSuffix.set(suffix);
178 // returns true if suffix is empty, or if str ends with suffix
179 static bool issuffixfor(const SkString& suffix, const char str[])
181 size_t suffixLen = suffix.size();
185 memcmp(suffix.c_str(), str + strLen - suffixLen, suffixLen) == 0;