1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

[TextServer] Add ICU Unicode security and spoofing detection.

This commit is contained in:
bruvzg
2021-11-12 10:12:37 +02:00
parent 119b2874c3
commit 4373a0bb86
20 changed files with 4403 additions and 4 deletions

View File

@@ -149,6 +149,7 @@ public:
FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION = 1 << 11,
FEATURE_USE_SUPPORT_DATA = 1 << 12,
FEATURE_UNICODE_IDENTIFIERS = 1 << 13,
FEATURE_UNICODE_SECURITY = 1 << 14,
};
enum ContourPointTag {
@@ -464,6 +465,9 @@ public:
// String functions.
virtual PackedInt32Array string_get_word_breaks(const String &p_string, const String &p_language = "") const = 0;
virtual int is_confusable(const String &p_string, const PackedStringArray &p_dict) const { return -1; };
virtual bool spoof_check(const String &p_string) const { return false; };
virtual String strip_diacritics(const String &p_string) const;
virtual bool is_valid_identifier(const String &p_string) const;