Searched refs:ps (Results 1 – 1 of 1) sorted by relevance
485 const char* ps = str; in ParseSha1() local487 for (int i = 0; i < SHA_DIGEST_LENGTH * 2; ++i, ++ps) { in ParseSha1()489 if (*ps >= '0' && *ps <= '9') { in ParseSha1()490 digit = *ps - '0'; in ParseSha1()491 } else if (*ps >= 'a' && *ps <= 'f') { in ParseSha1()492 digit = *ps - 'a' + 10; in ParseSha1()493 } else if (*ps >= 'A' && *ps <= 'F') { in ParseSha1()494 digit = *ps - 'A' + 10; in ParseSha1()505 if (*ps != '\0') return -1; in ParseSha1()