| 3043 | } |
| 3044 | |
| 3045 | TextPosition TextDocument::sanitizePosition( const TextPosition& position ) const { |
| 3046 | auto lineCount = linesCount(); |
| 3047 | Int64 line = eeclamp<Int64>( position.line(), 0UL, lineCount ? lineCount - 1 : 0 ); |
| 3048 | Int64 col = |
| 3049 | eeclamp<Int64>( position.column(), 0UL, eemax<Int64>( 0, getLineLength( line ) - 1 ) ); |
| 3050 | return { line, col }; |
| 3051 | } |
| 3052 | |
| 3053 | const TextDocument::IndentType& TextDocument::getIndentType() const { |
| 3054 | return mIndentType; |
no test coverage detected