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

Method CaseMapString

src/qscint/scintilla/src/Editor.cpp:4110–4123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4108}
4109
4110std::string Editor::CaseMapString(const std::string &s, int caseMapping) {
4111 std::string ret(s);
4112 for (char &ch : ret) {
4113 switch (caseMapping) {
4114 case cmUpper:
4115 ch = MakeUpperCase(ch);
4116 break;
4117 case cmLower:
4118 ch = MakeLowerCase(ch);
4119 break;
4120 }
4121 }
4122 return ret;
4123}
4124
4125/**
4126 * Search for text in the target range of the document.

Callers

nothing calls this directly

Calls 2

MakeUpperCaseFunction · 0.85
MakeLowerCaseFunction · 0.85

Tested by

no test coverage detected