MCPcopy Create free account
hub / github.com/SpartanJ/eepp / startOfWord

Method startOfWord

src/eepp/ui/doc/textdocument.cpp:1960–1970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1958}
1959
1960TextPosition TextDocument::startOfWord( TextPosition position ) const {
1961 while ( true ) {
1962 TextPosition curPos = positionOffset( position, -1 );
1963 String::StringBaseType ch = getChar( curPos );
1964 if ( isNonWord( ch ) || position == curPos ) {
1965 break;
1966 }
1967 position = curPos;
1968 }
1969 return position;
1970}
1971
1972TextPosition TextDocument::endOfWord( TextPosition position ) const {
1973 while ( true ) {

Callers 3

onTextInputMethod · 0.80
getPartialSymbolMethod · 0.80
postDrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected