MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Set

Method Set

scintilla/lexlib/PropSetSimple.cxx:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void PropSetSimple::Set(const char *key, const char *val, int lenKey, int lenVal) {
42 mapss *props = static_cast<mapss *>(impl);
43 if (!*key) // Empty keys are not supported
44 return;
45 if (lenKey == -1)
46 lenKey = static_cast<int>(strlen(key));
47 if (lenVal == -1)
48 lenVal = static_cast<int>(strlen(val));
49 (*props)[std::string(key, lenKey)] = std::string(val, lenVal);
50}
51
52static bool IsASpaceCharacter(unsigned int ch) {
53 return (ch == ' ') || ((ch >= 0x09) && (ch <= 0x0d));

Callers

nothing calls this directly

Calls 1

IsASpaceCharacterFunction · 0.85

Tested by

no test coverage detected