mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
parent
e25fe1ecc9
commit
14553139ae
@ -142,6 +142,16 @@ size_t String::FindFirstOf(char ch, size_t pos) const
|
|||||||
return m_Data.find_first_of(ch, pos);
|
return m_Data.find_first_of(ch, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t String::FindFirstNotOf(const char *s, size_t pos) const
|
||||||
|
{
|
||||||
|
return m_Data.find_first_not_of(s, pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t String::FindFirstNotOf(char ch, size_t pos) const
|
||||||
|
{
|
||||||
|
return m_Data.find_first_not_of(ch, pos);
|
||||||
|
}
|
||||||
|
|
||||||
String String::SubStr(size_t first, size_t len) const
|
String String::SubStr(size_t first, size_t len) const
|
||||||
{
|
{
|
||||||
return m_Data.substr(first, len);
|
return m_Data.substr(first, len);
|
||||||
|
@ -81,6 +81,8 @@ public:
|
|||||||
size_t Find(const String& str, size_t pos = 0) const;
|
size_t Find(const String& str, size_t pos = 0) const;
|
||||||
size_t FindFirstOf(const char *s, size_t pos = 0) const;
|
size_t FindFirstOf(const char *s, size_t pos = 0) const;
|
||||||
size_t FindFirstOf(char ch, size_t pos = 0) const;
|
size_t FindFirstOf(char ch, size_t pos = 0) const;
|
||||||
|
size_t FindFirstNotOf(const char *s, size_t pos = 0) const;
|
||||||
|
size_t FindFirstNotOf(char ch, size_t pos = 0) const;
|
||||||
String SubStr(size_t first, size_t len = NPos) const;
|
String SubStr(size_t first, size_t len = NPos) const;
|
||||||
void Replace(size_t first, size_t second, const String& str);
|
void Replace(size_t first, size_t second, const String& str);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user