mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
COMMON: Add contains overload for char32_t in String
This commit is contained in:
parent
7b7bea9fe5
commit
23ce3edac9
@ -176,6 +176,12 @@ bool String::contains(uint32 x) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef USE_CXX11
|
||||
bool String::contains(char32_t x) const {
|
||||
return contains((uint32)x);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef SCUMMVM_UTIL
|
||||
|
||||
bool String::matchString(const char *pat, bool ignoreCase, bool pathMode) const {
|
||||
|
@ -118,6 +118,9 @@ public:
|
||||
bool contains(const char *x) const;
|
||||
bool contains(char x) const;
|
||||
bool contains(uint32 x) const;
|
||||
#ifdef USE_CXX11
|
||||
bool contains(char32_t x) const;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Simple DOS-style pattern matching function (understands * and ? like used in DOS).
|
||||
|
Loading…
Reference in New Issue
Block a user