Home
last modified time | relevance | path

Searched refs:cCur (Results 1 – 1 of 1) sorted by relevance

/base/notification/ans_standard/frameworks/ans/core/src/
Dans_image_util.cpp173 uint8_t cCur = (cTemp & 0x0f); in BinToHex() local
174 if (cCur < NUM_TEN) { in BinToHex()
175 cCur += '0'; in BinToHex()
177 cCur += ('a' - NUM_TEN); in BinToHex()
179 strHex[TWO_TIMES * i + 1 - j] = cCur; in BinToHex()
198 char cCur = strHex[TWO_TIMES * i + j]; in HexToBin() local
200 if (cCur >= '0' && cCur <= '9') { in HexToBin()
201 value = value + static_cast<uint8_t>(cCur - '0'); in HexToBin()
202 } else if (cCur >= 'a' && cCur <= 'f') { in HexToBin()
203 value = value + static_cast<uint8_t>(cCur - 'a' + NUM_TEN); in HexToBin()
[all …]