diff options
author | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2018-07-24 16:06:49 +0100 |
---|---|---|
committer | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2018-07-24 16:08:45 +0100 |
commit | e0df1221bf50934063b8e881e2d2b48fb8a643c0 (patch) | |
tree | 363ea26caa446583e124f225d6ff55ddf9edfb5f /core/ustring.h | |
parent | a2f9ce2569bf2e16b3b4c5d2376a2e1fb0def90e (diff) |
removed redundant strlen calculation from String::substr
Diffstat (limited to 'core/ustring.h')
-rw-r--r-- | core/ustring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ustring.h b/core/ustring.h index b57e9629d9..001d111d64 100644 --- a/core/ustring.h +++ b/core/ustring.h @@ -65,6 +65,7 @@ class String : public Vector<CharType> { void copy_from(const char *p_cstr); void copy_from(const CharType *p_cstr, int p_clip_to = -1); void copy_from(const CharType &p_char); + void copy_from_unchecked(const CharType *p_char, int p_length); bool _base_is_subsequence_of(const String &p_string, bool case_insensitive) const; public: |