MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / CheckASCII

Function CheckASCII

include/LightGBM/utils/common.h:922–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922inline bool CheckASCII(const std::string& s) {
923 for (auto c : s) {
924 if (static_cast<unsigned char>(c) > 127) {
925 return false;
926 }
927 }
928 return true;
929}
930
931inline bool CheckAllowedJSON(const std::string& s) {
932 unsigned char char_code;

Callers 2

KV2MapMethod · 0.50
set_feature_namesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected