Lines Matching refs:pos
151 string::size_type pos = name.find_last_of(".");
152 if (pos != string::npos) {
153 return name.substr(0, pos);
185 size_t pos = 0;
187 while (pos < length) {
188 if (pos + HEAD_LENGTH >= length) {
192 uint16_t size = (content[pos] & 0xff) | ((content[pos + 1] & 0xff) << 8); // Move 8 bits to the left
193 pos += HEAD_LENGTH;
195 if (pos + size >= length) {
199 string buffer = content.substr(pos, size);
201 pos += size + sizeof(char);
273 string::size_type pos = 0;
276 while ((pos = sourceStr.find(oldStr, pos)) != string::npos) {
277 sourceStr.replace(pos, oldSize, newStr.c_str());
278 pos += newSize;