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

Function IsASCIIPunctuationCharacter

src/qscint/scintilla/src/Document.cpp:2475–2513  ·  view source on GitHub ↗

Used for word part navigation.

Source from the content-addressed store, hash-verified

2473
2474// Used for word part navigation.
2475static bool IsASCIIPunctuationCharacter(unsigned int ch) noexcept {
2476 switch (ch) {
2477 case '!':
2478 case '"':
2479 case '#':
2480 case '$':
2481 case '%':
2482 case '&':
2483 case '\'':
2484 case '(':
2485 case ')':
2486 case '*':
2487 case '+':
2488 case ',':
2489 case '-':
2490 case '.':
2491 case '/':
2492 case ':':
2493 case ';':
2494 case '<':
2495 case '=':
2496 case '>':
2497 case '?':
2498 case '@':
2499 case '[':
2500 case '\\':
2501 case ']':
2502 case '^':
2503 case '_':
2504 case '`':
2505 case '{':
2506 case '|':
2507 case '}':
2508 case '~':
2509 return true;
2510 default:
2511 return false;
2512 }
2513}
2514
2515bool Document::IsWordPartSeparator(unsigned int ch) const {
2516 return (WordCharacterClass(ch) == CharClassify::ccWord) && IsASCIIPunctuationCharacter(ch);

Callers 3

IsWordPartSeparatorMethod · 0.85
WordPartLeftMethod · 0.85
WordPartRightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected