mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add String::remove_char(s) methods for performance and convenience
This commit is contained in:
parent
cae3d722a3
commit
331a43a9d8
35 changed files with 221 additions and 54 deletions
|
|
@ -214,7 +214,7 @@ String OS::get_locale() const {
|
|||
// Non-virtual helper to extract the 2 or 3-letter language code from
|
||||
// `get_locale()` in a way that's consistent for all platforms.
|
||||
String OS::get_locale_language() const {
|
||||
return get_locale().left(3).replace("_", "");
|
||||
return get_locale().left(3).remove_char('_');
|
||||
}
|
||||
|
||||
// Embedded PCK offset.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue