载入中...
搜索中...
未找到
LanguageText.h
浏览该文件的文档.
42EVENGINE_API_FOUNDATION std::string sliceLines(std::string_view source, size_t startLine, size_t endLineInclusive);
49EVENGINE_API_FOUNDATION bool applyIncremental(std::string& source, const Range* range, std::string_view text);
52EVENGINE_API_FOUNDATION std::string formatEveScript(std::string_view source, const FormatOptions& options = {});
Definition LanguageIndex.cpp:11
size_t offsetAt(std::string_view source, Position position) noexcept
Converts an LSP position into a UTF-8 byte offset (same contract as the rest of the server).
Definition LanguageText.cpp:141
size_t lastLineIndex(std::string_view source) noexcept
Last 0-based line index (empty source is line 0).
Definition LanguageText.cpp:155
std::string sliceLines(std::string_view source, size_t startLine, size_t endLineInclusive)
Source bytes for coveringLines of the same line span.
Definition LanguageText.cpp:176
bool applyIncremental(std::string &source, const Range *range, std::string_view text)
Applies one LSP content change.
Definition LanguageText.cpp:184
std::string formatEveScript(std::string_view source, const FormatOptions &options)
Indents EveScript by braces/brackets and trims trailing whitespace.
Definition LanguageText.cpp:196
Range coveringLines(std::string_view source, size_t startLine, size_t endLineInclusive) noexcept
Half-open LSP range covering startLine through endLine inclusive. Ends at the start of the following ...
Definition LanguageText.cpp:162
Range documentRange(std::string_view source) noexcept
Full-document range covering every character in source.
Definition LanguageText.cpp:151
std::vector< FoldingRange > foldingRanges(std::string_view source)
Brace, bracket, and block-comment folds that span more than one line.
Definition LanguageText.cpp:230
One foldable region (0-based inclusive end line).
Definition LanguageText.h:19
Editor formatting preferences from LSP FormattingOptions.
Definition LanguageText.h:13