mirror of
https://github.com/godotengine/godot.git
synced 2026-01-01 05:49:28 +03:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
@@ -519,6 +519,8 @@ public:
|
||||
String get_basename() const;
|
||||
String path_join(const String &p_path) const;
|
||||
char32_t unicode_at(int p_idx) const;
|
||||
bool has_extension(const char *p_ext) const { return get_extension().to_lower() == p_ext; }
|
||||
bool has_extension(const String &p_ext) const { return get_extension().to_lower() == p_ext; }
|
||||
|
||||
CharString ascii(bool p_allow_extended = false) const;
|
||||
// Parse an ascii string.
|
||||
|
||||
Reference in New Issue
Block a user