MCPcopy Create free account
hub / github.com/cxasm/notepad-- / CheckTextIsAllAscii

Method CheckTextIsAllAscii

src/Encode.cpp:395–405  ·  view source on GitHub ↗

检查是否全是ascii字符码

Source from the content-addressed store, hash-verified

393
394//检查是否全是ascii字符码
395bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected