MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _contains_char

Function _contains_char

core/string/ustring.cpp:2922–2930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2920
2921template <class T>
2922static bool _contains_char(char32_t p_c, const T *p_chars, int p_chars_len) {
2923 for (int i = 0; i < p_chars_len; ++i) {
2924 if (p_c == (char32_t)p_chars[i]) {
2925 return true;
2926 }
2927 }
2928
2929 return false;
2930}
2931
2932String String::remove_char(char32_t p_char) const {
2933 if (p_char == 0) {

Callers 2

_remove_chars_commonFunction · 0.85
_replace_chars_commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected