Age | Commit message (Collapse) | Author |
|
I added tests for firstChar, setChar, insertChar
|
|
matchString patterns couldn't be used to find files with the # character
as it was only treated as a digit wildcard. SCI expected that to work as
it looks for files that start with the # character.
|
|
This was being patched out downstream in Debian. A solution that
works for everybody is to just not use a zero-length string when
testing formatting with no conversion specifications.
|
|
|
|
|
|
This API is intended for use in cases where C strings come
from untrusted sources like game files, where malformed data
missing the null terminator would cause strlen to read out of
bounds.
|
|
|
|
COMMON: Add replacement to common/algorithm.h
COMMON: Intermediate commit to show doubts.
COMMON: Basic String::replace() methods implemented.
COMMON: Fix typo in the algorithm.h documentation.
COMMON: Fix documentation of String::replace()
COMMON: Fix formatting issues in method signatures.
COMMON: Add assert and reformat loops in str and algorithm.
COMMON: Fix typo in comment.
COMMON: Fix style in string test cases.
COMMON: Add Doxygen documentation to algorithm and String.
COMMON: Add Doxygen documentation to algorithm and String.
COMMON: Add Doxygen documentation to algorithm.
COMMON: Fix style in algorithm comments.
COMMON: Add Doxygen comments to String.
COMMON: Add Doxygen comments to algorithm test function.
COMMON: Add String support for substring replace.
COMMON: Fix string replace to comply with STL
COMMON: Fix documentation on string replace
COMMON: Fix style in string replace
COMMON: Fix unwanted reference problem in String::replace().
COMMON: Fix indentation in comments for replace
COMMON: Fix indentation in replace
COMMON: Fix comments in String::replace to match implementation.
COMMON: Remove assert to allow for not-null-terminated character arrays
COMMON: Add new test for String::replace
COMMON: Fix broken comments on String::replace
COMMON: Fix sharing bug on ensureCapacity
COMMON: Remove superfluous call to makeUnique()
|
|
|
|
|
|
There are some unit tests to verify that this works correctly.
There is a small chance that this causes regressions in weird setups.
|
|
This takes up a tiny little bit of extra binary size, but gets
rid of some awful #ifdef hackery.
|
|
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
|
|
svn-id: r53121
|
|
svn-id: r52618
|
|
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
|
|
svn-id: r49325
|
|
from an example by fuzzie)
svn-id: r49322
|
|
svn-id: r48956
|
|
This includes both an implementation and some basic unit tests for
the above mentioned functions.
svn-id: r48953
|
|
svn-id: r44980
|
|
svn-id: r42743
|
|
svn-id: r41333
|
|
storage).
svn-id: r41083
|
|
example cover tests on String instances, which will be added to itself (foo += foo). NOTE: Those fail currently.
svn-id: r41082
|
|
possible; also made them comply a bit more to our code formatting guideline
svn-id: r40722
|
|
svn-id: r40026
|
|
svn-id: r34369
|
|
that is the case, abort immediately instead of scanning the rest of the string)
svn-id: r34367
|
|
method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString
svn-id: r34364
|
|
Common::lastPathComponent() and Common::normalizePath()
svn-id: r34272
|
|
String::operator=(char c); extended String unit tests
svn-id: r33246
|
|
cover this
svn-id: r33234
|
|
svn-id: r33203
|
|
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
|
|
been updated.
svn-id: r28966
|
|
svn-id: r26514
|
|
svn-id: r24045
|
|
svn-id: r21472
|
|
svn-id: r18604
|
|
svn-id: r18444
|
|
svn-id: r16745
|
|
svn-id: r11886
|