Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-06-07 | Fixed appending a (substring of a) string to itself | Max Horn | |
svn-id: r41337 | |||
2009-06-07 | Added some new method variants to Common::String | Max Horn | |
svn-id: r41333 | |||
2009-05-04 | Fixed new[] / delete mismatch in Common::String | Max Horn | |
svn-id: r40302 | |||
2009-05-03 | COMMON: Check for failed memory allocations; changed Common::String to use ↵ | Max Horn | |
new/delete instead of malloc/free svn-id: r40291 | |||
2009-02-15 | Merged internal 'matchPath' method of class Archive into global matchString ↵ | Max Horn | |
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 | |||
2008-12-22 | Fixed indentation and removed whitespaces at the end of line | Jordi Vilalta Prat | |
svn-id: r35481 | |||
2008-10-12 | COMMON: Added a new ObjectPool class, with matching operator new/delete ↵ | Max Horn | |
overloads svn-id: r34785 | |||
2008-10-02 | Ignore String::deleteLastChar when called on an empty string | Max Horn | |
svn-id: r34718 | |||
2008-09-24 | Changed Common::String to use a MemoryPool for its refcounts | Max Horn | |
svn-id: r34642 | |||
2008-09-20 | Little readability tweak | Max Horn | |
svn-id: r34615 | |||
2008-09-05 | Optimized 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-05 | Moved 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-03 | Fix nasty off-by-one errors | Max Horn | |
svn-id: r34317 | |||
2008-09-03 | Modified Common::Str to use exponential growth for its storage; also changed ↵ | Max Horn | |
the meaning of 'capacity' from 'max length of string' to 'size of storage' (i.e. added one) svn-id: r34313 | |||
2008-09-02 | Added two new global funcs which ease proper handling of 'path' strings: ↵ | Max Horn | |
Common::lastPathComponent() and Common::normalizePath() svn-id: r34272 | |||
2008-08-20 | Unified member names in container/storage classes Array, HashMap and String: ↵ | Max Horn | |
_storage, _size, _capacity svn-id: r34052 | |||
2008-07-23 | Reorder stuff a little bit, moving private String methods together: cleanup | Max Horn | |
svn-id: r33248 | |||
2008-07-23 | Added convenience method String::makeUnique(); simplified ↵ | Max Horn | |
String::operator=(char c); extended String unit tests svn-id: r33246 | |||
2008-07-23 | Fix String::trim to work right for shared strings; augemented test cases to ↵ | Max Horn | |
cover this svn-id: r33234 | |||
2008-07-22 | Added String::trim() method | Max Horn | |
svn-id: r33203 | |||
2008-07-20 | Fixed 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 | |||
2008-03-30 | Removed char &operator [] from class String -- it had the potential to wreak ↵ | Max Horn | |
havoc when used on shared strings (thanks to tramboi for pointing this out) svn-id: r31334 | |||
2008-02-08 | Added a simple non-optimized StringTokenizer-class for tokenizing strings. ↵ | Kari Salminen | |
Also added a contains(char)-function to the String-class because it was handy in implementing the StringTokenizer. svn-id: r30828 | |||
2007-09-19 | Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵ | Nicola Mettifogo | |
been updated. svn-id: r28966 | |||
2007-06-02 | Enhanced Common::String by adding char constructor and operator+ for chars | Max Horn | |
svn-id: r27051 | |||
2007-05-30 | Updated legal headers in source files, based on what Pidgin (the IM client ↵ | Max Horn | |
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024 | |||
2007-04-15 | Added Common::String::contains() method | Max Horn | |
svn-id: r26514 | |||
2007-03-09 | Removing some unnecessary #includes | Max Horn | |
svn-id: r26044 | |||
2007-02-13 | made rtrim() and ltrim() global functions, to reduce code duplication (it ↵ | Gregory Montoir | |
seems parallaction/parser.cpp code re-use them too svn-id: r25564 | |||
2006-12-17 | replace ensureCapacity(_len-1) by ensureCapacity(_len) (fixes bug #1617410) | Willem Jan Palenstijn | |
svn-id: r24865 | |||
2006-11-27 | Changed the way String::_storage is initialised, to help GCC 2.95 (see ↵ | Gregory Montoir | |
tracker item #1602879) svn-id: r24793 | |||
2006-09-30 | Rewrote class String to use an internal (stack based) storage for small ↵ | Max Horn | |
strings, thus avoiding a couple ten thousand heap allocations svn-id: r24043 | |||
2006-07-30 | Added explicit string equals/hash functors to a new header ↵ | Max Horn | |
common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case svn-id: r23634 | |||
2006-07-30 | Added new equals(IgnoreCase) and compareTo(IgnoreCase) methods to class String | Max Horn | |
svn-id: r23633 | |||
2006-06-10 | Patch #1503718: "Strange results from Common::computeCapacity" | Eugene Sandulenko | |
svn-id: r22998 | |||
2006-06-05 | Lazily allocate _refCount in class String | Max Horn | |
svn-id: r22935 | |||
2006-06-04 | When ensureCapacity() does not have an old string to copy, make sure the newly | Torbjörn Andersson | |
allocated one is terminated. Hopefully this will keep the SCUMM save dialog from randomly adding garbage to my savegame names. svn-id: r22908 | |||
2006-06-03 | Allocate and grow Common::String objects in multiples of 32, and leave at ↵ | Max Horn | |
least 16 spare bytes at the end, in case the string grows a little bit. svn-id: r22896 | |||
2006-06-02 | Fix mingw compile | Travis Howell | |
svn-id: r22835 | |||
2006-06-02 | Allocate minimum 16 bytes on String(str) call. Reduces 2.500 malloc() calls | Eugene Sandulenko | |
on startup svn-id: r22834 | |||
2006-04-16 | Fixed evil longstanding bug in String::toLowercase & toUppercase: Before ↵ | Max Horn | |
modifying the string content, make sure we do not share it with any other string). This should help (hopefully fix) bug #1470892 svn-id: r21931 | |||
2006-04-14 | Tiny optimization for empty strings, which avoids allocating a single byte ↵ | Max Horn | |
just to store an empty string (we pass around empty strings in lots of places) svn-id: r21892 | |||
2006-02-11 | Change CVS keywords to SVN keywords | Max Horn | |
svn-id: r20510 | |||
2006-01-18 | Update copyright notice | Eugene Sandulenko | |
svn-id: r20088 | |||
2005-11-27 | Patch #1341626: "New GP32 port" | Eugene Sandulenko | |
svn-id: r19710 | |||
2005-10-18 | Update FSF address. Eek. Actually that took place on May 1, 2005 | Eugene Sandulenko | |
svn-id: r19142 | |||
2005-10-08 | PalmOS: cannot use global objects in ARM | Chris Apers | |
svn-id: r18962 | |||
2005-07-30 | Remove trailing whitespaces. | Eugene Sandulenko | |
svn-id: r18604 | |||
2005-06-24 | When including files from common/, explicitly use the common/ prefix | Max Horn | |
svn-id: r18444 | |||
2005-02-06 | Added String::hasSuffix and hasPrefix | Max Horn | |
svn-id: r16744 |