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

Method ChSetWithCase

scintilla/src/RESearch.cxx:299–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void RESearch::ChSetWithCase(unsigned char c, bool caseSensitive) {
300 if (caseSensitive) {
301 ChSet(c);
302 } else {
303 if ((c >= 'a') && (c <= 'z')) {
304 ChSet(c);
305 ChSet(static_cast<unsigned char>(c - 'a' + 'A'));
306 } else if ((c >= 'A') && (c <= 'Z')) {
307 ChSet(c);
308 ChSet(static_cast<unsigned char>(c - 'A' + 'a'));
309 } else {
310 ChSet(c);
311 }
312 }
313}
314
315unsigned char escapeValue(unsigned char ch) {
316 switch (ch) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected