Lines Matching refs:i
55 size_t i; in GetCrashDescription() local
57 for (i = 0; i < sizeof(g_crashExceptionMap) / sizeof(g_crashExceptionMap[0]); i++) { in GetCrashDescription()
58 if (errCode == g_crashExceptionMap[i].errCode) { in GetCrashDescription()
59 return g_crashExceptionMap[i].str; in GetCrashDescription()
62 return g_crashExceptionMap[i - 1].str; /* the end of map is "unknown reason" */ in GetCrashDescription()
126 for (int i = 0; i < keySize; i++) { in CheckCrashLogValid() local
127 checkMap[i].start = file.find(checkMap[i].key); in CheckCrashLogValid()
128 if ((checkMap[i].start == std::string::npos) || in CheckCrashLogValid()
129 (checkMap[i].start + checkMap[i].key.length() + sizeof(char) >= file.length())) { in CheckCrashLogValid()
130 return checkMap[i].errCode; in CheckCrashLogValid()
134 for (int i = 0; i < keySize; i++) { in CheckCrashLogValid() local
135 size_t end = (i == (keySize - 1) ? file.length() : checkMap[i + 1].start); in CheckCrashLogValid()
136 if (end - checkMap[i].start > MAX_FATAL_MSG_SIZE) { in CheckCrashLogValid()
137 end = checkMap[i].start + MAX_FATAL_MSG_SIZE; in CheckCrashLogValid()
139 std::string tmp = file.substr(checkMap[i].start, end - checkMap[i].start); in CheckCrashLogValid()
141 if (!std::regex_search(tmp, result, std::regex(checkMap[i].regx))) { in CheckCrashLogValid()
142 return checkMap[i].errCode; in CheckCrashLogValid()