| 1958 | } |
| 1959 | |
| 1960 | TextPosition 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 | |
| 1972 | TextPosition TextDocument::endOfWord( TextPosition position ) const { |
| 1973 | while ( true ) { |
no outgoing calls
no test coverage detected