Falk Seidel
2e29d49a53
Welcome to 2015
2014-12-31 11:28:38 +01:00
Alexey Sokolov
213c3839a8
Merge pull request #693 from jpnurmi/tags
...
Valueless & escaped message tags
2014-09-29 23:53:55 +01:00
J-P Nurmi
e20ac1a31e
Add CString::Contains() for convenience
...
This is more convenient and readable than comparing Find() to npos,
which is a common task:
$ git grep "find(" | grep "npos" | wc -l
49
2014-09-30 00:15:34 +02:00
J-P Nurmi
5507e9a290
Add CString::Find() with case sensitivity support
2014-09-30 00:15:22 +02:00
J-P Nurmi
92c9a2e6ae
Escape message tag values (ref #684 )
2014-09-30 00:02:22 +02:00
J-P Nurmi
65f739980d
CString::Starts/EndsWith(): allow specifying case sensitivity
2014-09-29 16:41:07 +02:00
J-P Nurmi
e86f43d841
Introduce CaseSensitivity enum class
...
The enum is a bit more verbose, but leads to more readable code:
str.Equals("foo", true)
// vs.
str.Equals("foo", CString::CaseSensitive)
Deprecate the old Equals() and leave out the length parameter
from the new version => use StartsWith() or StrCmp() instead.
2014-09-29 16:30:45 +02:00
Uli Schlachter
d4fefd1888
StringTest: Make a local function static
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2014-08-06 14:50:58 +02:00
Falk Seidel
f19b4caa43
Welcome to 2014 - year 10 with ZNC
2013-12-31 10:10:55 +01:00
Alexey Sokolov
91e5330db5
More string tests.
2013-10-13 21:00:43 +04:00
Alexey Sokolov
257e681036
Rename EscapeTest to StringTest
2013-10-13 21:00:43 +04:00