Age | Commit message (Collapse) | Author |
|
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
|
|
Searches for a substring in the string and replaces it with the other
string.
|
|
Instead of all these atoull() I've added everywhere.
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The value_type is analogous to std::basic_string::value_type.
The unsigned_type on the other hand is an unsigned type of the value_type which
allows to obtain an character without nasty sign extension.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svn-id: r54716
|
|
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: r53586
|
|
svn-id: r53576
|
|
Also make operator=(char) and String(char) behave the same.
svn-id: r50712
|
|
svn-id: r49324
|
|
Common::String::begin now assures the storage is a unique one, i.e. there are
no other Common::String objects pointing at it. This allows for safe use of
the writable iterators (and thus fixes the test case added with my last commit)
svn-id: r49323
|
|
This includes both an implementation and some basic unit tests for
the above mentioned functions.
svn-id: r48953
|
|
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
|
|
svn-id: r48281
|
|
svn-id: r47744
|
|
hackery (getting rid of certain global C++ objs)
svn-id: r46781
|
|
svn-id: r44265
|
|
svn-id: r42743
|
|
svn-id: r41333
|
|
svn-id: r40382
|
|
Common::Array constructor which converts regular arrays to Array objects to be more flexible in its type (allows e.g. to assign an array of char* to a StringList
svn-id: r40077
|
|
svn-id: r39789
|
|
function (via an optional 'path mode' in the latter). Also changed Archive::listMatchingMembers to use path mode when matching, just like FSDirectory::listMatchingMembers
svn-id: r38277
|
|
svn-id: r35481
|
|
constructor of Common::String explicit, to avoid such bugs in the future
svn-id: r34660
|
|
sizeof(String) 32; reduces overall memory req by 200k on my system; overall # of mallocs after this + the refcount memory pool change is almost unchanged
svn-id: r34644
|
|
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
|
|
properly :-P
svn-id: r34188
|
|
svn-id: r34187
|
|
_storage, _size, _capacity
svn-id: r34052
|
|
String::operator=(char c); extended String unit tests
svn-id: r33246
|
|
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
|
|
havoc when used on shared strings (thanks to tramboi for pointing this out)
svn-id: r31334
|
|
svn-id: r31327
|
|
Also added a contains(char)-function to the String-class because it was handy in implementing the StringTokenizer.
svn-id: r30828
|