aboutsummaryrefslogtreecommitdiff
path: root/test/common/str.h
AgeCommit message (Collapse)Author
2011-06-03COMMON: Let Common::normalizePath normalize '..' in pathsMax Horn
There are some unit tests to verify that this works correctly. There is a small chance that this causes regressions in weird setups.
2011-05-23COMMON: Provide our own implementations for scumm_str(n)icmpMax Horn
This takes up a tiny little bit of extra binary size, but gets rid of some awful #ifdef hackery.
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-10TEST: Use TS_ASSERT_EQUALS instead of TS_ASSERT + operator==Max Horn
svn-id: r53121
2010-09-07COMMON: Fix edge case for wildcard in matchStringWillem Jan Palenstijn
svn-id: r52618
2010-08-16Common: Fix bug in lastPathComponent.Johannes Schickel
Prior to this change lastPathComponent would not create a correct result, when the input of lastPathComponent did not contain a single separator. I also added a test case for this in our unit tests. svn-id: r52123
2010-05-30Split test cases for internal and external storage.Johannes Schickel
svn-id: r49325
2010-05-30Add a (currently) failing test for reference logic in Common::String. (Taken ↵Johannes Schickel
from an example by fuzzie) svn-id: r49322
2010-05-05Typo.Johannes Schickel
svn-id: r48956
2010-05-05Add a custom implementation of OpenBSD's strlcat and strlcpy.Johannes Schickel
This includes both an implementation and some basic unit tests for the above mentioned functions. svn-id: r48953
2009-10-12Add unit test for bug fixed by r44979Willem Jan Palenstijn
svn-id: r44980
2009-07-25Add Common::String::printf to format a stringWillem Jan Palenstijn
svn-id: r42743
2009-06-07Added some new method variants to Common::StringMax Horn
svn-id: r41333
2009-05-31Extend self asignment test a bit more (both using internal and allocated ↵Johannes Schickel
storage). svn-id: r41083
2009-05-31Add unit tests for Common::String operators. These test cases will for ↵Johannes Schickel
example cover tests on String instances, which will be added to itself (foo += foo). NOTE: Those fail currently. svn-id: r41082
2009-05-19Converted unit tests to use TS_ASSERT_EQUALS / TS_ASSERT_DIFFERS where ↵Max Horn
possible; also made them comply a bit more to our code formatting guideline svn-id: r40722
2009-04-20TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALSMax Horn
svn-id: r40026
2008-09-05additional Common::String testsWillem Jan Palenstijn
svn-id: r34369
2008-09-05Optimized matchString for the common case where there is a trailing * (if ↵Max Horn
that is the case, abort immediately instead of scanning the rest of the string) svn-id: r34367
2008-09-05Moved matchString from util.* to str.*; added new String::matchString ↵Max Horn
method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString svn-id: r34364
2008-09-02Added two new global funcs which ease proper handling of 'path' strings: ↵Max Horn
Common::lastPathComponent() and Common::normalizePath() svn-id: r34272
2008-07-23Added convenience method String::makeUnique(); simplified ↵Max Horn
String::operator=(char c); extended String unit tests svn-id: r33246
2008-07-23Fix String::trim to work right for shared strings; augemented test cases to ↵Max Horn
cover this svn-id: r33234
2008-07-22Added String::trim() methodMax Horn
svn-id: r33203
2008-07-20Fixed potential issue in Common::String when asserting a substring of a ↵Max Horn
string X back to X (memcpy -> memmove); also added some other sanity checks, and merged some duplicate code into a new method String::initWithCStr svn-id: r33137
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-04-15Added Common::String::contains() methodMax Horn
svn-id: r26514
2006-09-30Added some String tests, to verify copy-on-write works correctlyMax Horn
svn-id: r24045
2006-03-28Renamed various container isEmpty() methods to empty() to match STL conventionsMax Horn
svn-id: r21472
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-02-06Add testcases for String::hasSuffix and hasPrefixMax Horn
svn-id: r16745
2003-12-24simple unit tests for List/Map/String classesMax Horn
svn-id: r11886