Lines Matching refs:ix
72 for (size_t ix = 0; ix < name.size(); ++ix) { in camelCaseToDashed() local
74 << name.substr(word_start, ix - word_start) << "[" in camelCaseToDashed()
75 << name.substr(ix, 1) << "]" << name.substr(ix + 1) in camelCaseToDashed()
77 if (isupper(name[ix])) { in camelCaseToDashed()
79 name.insert(ix++, 1, '-'); in camelCaseToDashed()
80 word_start = ix; in camelCaseToDashed()
82 name[ix] = tolower(name[ix]); in camelCaseToDashed()
84 } else if (islower(name[ix])) { in camelCaseToDashed()
85 if (type == kDigit && ix > 0) { in camelCaseToDashed()
86 name.insert(ix++, 1, '-'); in camelCaseToDashed()
87 word_start = ix; in camelCaseToDashed()
88 } else if (type == kUpper && ix > word_start + 1) { in camelCaseToDashed()
89 name.insert(ix++ - 1, 1, '-'); in camelCaseToDashed()
90 word_start = ix - 1; in camelCaseToDashed()
93 } else if (isdigit(name[ix])) { in camelCaseToDashed()
95 name.insert(ix++, 1, '-'); in camelCaseToDashed()
96 word_start = ix; in camelCaseToDashed()
99 } else if (name[ix] == '_') { in camelCaseToDashed()
101 name.erase(ix--, 1); in camelCaseToDashed()
103 name[ix] = '-'; in camelCaseToDashed()
105 word_start = ix + 1; in camelCaseToDashed()
108 word_start = ix + 1; in camelCaseToDashed()
111 name.resize(ix); in camelCaseToDashed()