MCPcopy Create free account
hub / github.com/catboost/catboost / IsAllowed

Function IsAllowed

library/cpp/testing/unittest/junit.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30extern const TString Y_UNITTEST_TEST_FILTER_FILE_OPTION = "Y_UNITTEST_FILTER_FILE";
31
32static bool IsAllowed(wchar32 c) {
33 // https://en.wikipedia.org/wiki/Valid_characters_in_XML
34 return c == 0x9
35 || c == 0xA
36 || c == 0xD
37 || c >= 0x20 && c <= 0xD7FF
38 || c >= 0xE000 && c <= 0xFFFD
39 || c >= 0x10000 && c <= 0x10FFFF;
40}
41
42static TString SanitizeString(TString s) {
43 TString escaped;

Callers 1

SanitizeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected