Age | Commit message (Collapse) | Author |
|
svn-id: r55839
|
|
Currently there is no iterator returned from this method, to have some
similarity to associative containers of the STL.
I also "added" one unit test for this method, which is basically just
a copy of the HashMap::erase(const Key &) test with the required adaptions.
svn-id: r55661
|
|
svn-id: r54440
|
|
svn-id: r54385
|
|
svn-id: r54326
|
|
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
as a hex string now returns it as a Common::String
* add doxygen comments
svn-id: r54121
|
|
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
|
|
In SCI01 and up, each typed word may be interpreted as multiple
class,group pairs. This patch adds support to the vocabulary and
parser. It uses the matcher support added in r52985.
This fixes parser issues in German LSL3, but needs testing.
svn-id: r52989
|
|
Specifically, the bugs in operators - and / for mixed Rational/int args,
fixed in rev #52675, are tested for.
svn-id: r52680
|
|
svn-id: r52618
|
|
This tests for the bug fixed by r52535, among other things.
svn-id: r52617
|
|
This test is currently failing.
svn-id: r52382
|
|
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: r51094
|
|
svn-id: r49325
|
|
from an example by fuzzie)
svn-id: r49322
|
|
svn-id: r49065
|
|
* Fix Common::gcd to work with negative input
* This fixes a bug in Common::Rational's multiplication code
* Add some more basic unit tests (including one which checks for
the now fixed multiplication bug)
* cleanup
svn-id: r49064
|
|
also courtesy of DrMcCoy who wrote the main Common::Rational class too
svn-id: r49062
|
|
svn-id: r48956
|
|
This includes both an implementation and some basic unit tests for
the above mentioned functions.
svn-id: r48953
|
|
svn-id: r48614
|
|
display"
svn-id: r48613
|
|
The new test verifies that a given object is indeed deleted after
the smart pointer leaves scope.
svn-id: r48358
|
|
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: r47541
|
|
svn-id: r46779
|
|
svn-id: r46644
|
|
svn-id: r46622
|
|
svn-id: r46621
|
|
boolean, which indicates whether the sequence is sorted by the given predicate.
This allows for easier checking which order related tests failed.
svn-id: r46620
|
|
svn-id: r46619
|
|
svn-id: r46618
|
|
svn-id: r46617
|
|
svn-id: r46616
|
|
svn-id: r46615
|
|
turned the (disabled) MD5 test code into a working unit test
svn-id: r46108
|
|
svn-id: r45247
|
|
svn-id: r44980
|
|
svn-id: r44259
|
|
A new variant of HashMap::getVal with a second 'default value' parameter
has been added. This helps avoid many contains() + getVal() combos
(which incur double lookup penalty), and is much lighter than using
find() (which has to create an iterator).
svn-id: r43983
|
|
svn-id: r42743
|
|
svn-id: r41401
|
|
svn-id: r41400
|
|
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
|
|
paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed)
svn-id: r40909
|
|
way the internal storage growth over time.
The bug could result in incorrect results when using push_back (or insert_at)
to insert data from an array into itself if this insertions would cause the
internal array storage to grow. Also added a unit test for this bug.
Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two,
instead of being increased by 32.
svn-id: r40907
|