检查是否全是ascii字符码
| 393 | |
| 394 | //检查是否全是ascii字符码 |
| 395 | bool Encode::CheckTextIsAllAscii(const uchar* pText, int length) |
| 396 | { |
| 397 | for (int i = 0; i < length; ++i) |
| 398 | { |
| 399 | if (*(pText + i) < 0 || *(pText + i) > 0x7F) |
| 400 | { |
| 401 | return false; |
| 402 | } |
| 403 | } |
| 404 | return true; |
| 405 | } |
nothing calls this directly
no outgoing calls
no test coverage detected