Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-12-01 | ALL: Fix a few typos | Jordi Vilalta Prat | |
svn-id: r54716 | |||
2010-11-01 | COMMON: 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-18 | Revert "COMMON: Implement Common::vprintf(). Patch by littleboy" | Eugene Sandulenko | |
svn-id: r53586 | |||
2010-10-18 | COMMON: Implement Common::vprintf(). Patch by littleboy | Eugene Sandulenko | |
svn-id: r53576 | |||
2010-07-05 | Note Common::String's behaviour may be undefined with \0 characters. | Willem Jan Palenstijn | |
Also make operator=(char) and String(char) behave the same. svn-id: r50712 | |||
2010-05-30 | Typo fixes. | Johannes Schickel | |
svn-id: r49324 | |||
2010-05-30 | Fix non-const version of Common::String::begin. | Johannes Schickel | |
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 | |||
2010-05-05 | Add 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 | |||
2010-03-18 | COMMON: Move typedef StringList from str.h to new header str-array.h | Max Horn | |
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 | |||
2010-03-18 | COMMON: Move tag2str from util.h to str.h | Max Horn | |
svn-id: r48281 | |||
2010-01-31 | Slight formatting fixes to comply to our coding guidelines. | Johannes Schickel | |
svn-id: r47744 | |||
2009-12-30 | Get rid of Common::String::emptyString, and also of some port specific ↵ | Max Horn | |
hackery (getting rid of certain global C++ objs) svn-id: r46781 | |||
2009-09-23 | COMMON: Add "ignoreCase" parameter to matchString. | Johannes Schickel | |
svn-id: r44265 | |||
2009-07-25 | Add Common::String::printf to format a string | Willem Jan Palenstijn | |
svn-id: r42743 | |||
2009-06-07 | Added some new method variants to Common::String | Max Horn | |
svn-id: r41333 | |||
2009-05-08 | Clarified docstring for String::insertChar | Max Horn | |
svn-id: r40382 | |||
2009-04-22 | COMMON: changed class StringList to a simple typedef; enhanced the ↵ | Max Horn | |
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 | |||
2009-04-01 | Formatting. | Johannes Schickel | |
svn-id: r39789 | |||
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-09-27 | Fixed a nasty bug in SearchManager::addDirectory; made the 'char' ↵ | Max Horn | |
constructor of Common::String explicit, to avoid such bugs in the future svn-id: r34660 | |||
2008-09-24 | Changed builtin Common::String capacity to 24 (on 32 bit systems), to make ↵ | Max Horn | |
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 | |||
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-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-26 | And for all of those who love recompiling most of ScummVM... fixed typo ↵ | Johannes Schickel | |
properly :-P svn-id: r34188 | |||
2008-08-26 | Fixed typo. (Thanks to salty-horse for spotting it). | Johannes Schickel | |
svn-id: r34187 | |||
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 | Added convenience method String::makeUnique(); simplified ↵ | Max Horn | |
String::operator=(char c); extended String unit tests svn-id: r33246 | |||
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-03-30 | Dropped superfluous 'virtual' keyword (saves us a few bytes for each String) | Max Horn | |
svn-id: r31327 | |||
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 | |||
2008-01-28 | Fixed the spaces before tabs. | Jordi Vilalta Prat | |
svn-id: r30667 | |||
2008-01-27 | Removed trailing spaces. | Jordi Vilalta Prat | |
svn-id: r30664 | |||
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-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 new equals(IgnoreCase) and compareTo(IgnoreCase) methods to class String | Max Horn | |
svn-id: r23633 | |||
2006-06-05 | Lazily allocate _refCount in class String | Max Horn | |
svn-id: r22935 | |||
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 | Allocate minimum 16 bytes on String(str) call. Reduces 2.500 malloc() calls | Eugene Sandulenko | |
on startup svn-id: r22834 | |||
2006-03-28 | Renamed various container isEmpty() methods to empty() to match STL conventions | Max Horn | |
svn-id: r21472 | |||
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 |