diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2021-10-18 15:07:11 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-02 08:30:20 +0300 |
commit | 5aa48b6ae5f44f16b3bf62c7c1c3501295132142 (patch) | |
tree | b3c14c8621d4dfd82d8c3df84962ed31a43df9ae /servers/text_server.h | |
parent | de53e91b856aba0e0ac100707376c8de9f50b4d1 (diff) |
[TextServer] Implement ICU/UAX 31 based `is_valid_identifier` function.
Diffstat (limited to 'servers/text_server.h')
-rw-r--r-- | servers/text_server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/text_server.h b/servers/text_server.h index f6ab165bfc..0e57bcbb6c 100644 --- a/servers/text_server.h +++ b/servers/text_server.h @@ -148,6 +148,7 @@ public: FEATURE_FONT_VARIABLE = 1 << 10, FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION = 1 << 11, FEATURE_USE_SUPPORT_DATA = 1 << 12, + FEATURE_UNICODE_IDENTIFIERS = 1 << 13, }; enum ContourPointTag { @@ -464,6 +465,7 @@ public: virtual PackedInt32Array string_get_word_breaks(const String &p_string, const String &p_language = "") const = 0; virtual String strip_diacritics(const String &p_string) const; + virtual bool is_valid_identifier(const String &p_string) const; // Other string operations. virtual String string_to_upper(const String &p_string, const String &p_language = "") const = 0; |