Commit Graph

298 Commits

Author SHA1 Message Date
ejakowatz
202ed890a9 Some bug fixing on BString and it's unit tests. Should now pass all
current tests!  Now included in the build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 03:36:17 +00:00
Stefano Ceccherini
5f6935dc8c Fixed the build again. It seems that BGA Utf8_char_lenght() function really works :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 19:14:08 +00:00
ejakowatz
8f1a4e7f89 Implemented BGA's UTF-8 char len suggestion in UTF8.h and used it in
BString::CountChars().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 08:06:18 +00:00
Stefano Ceccherini
e0db3523fc Some style changes, some bugfixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-11 11:08:11 +00:00
Stefano Ceccherini
bff4272dd4 Fixed ReplaceSet().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 11:51:18 +00:00
Stefano Ceccherini
8d10618461 Some cleanups (more to come)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-07 14:04:06 +00:00
Stefano Ceccherini
82e052e5a3 Fixed BString so it passes all the committed tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 18:05:06 +00:00
Stefano Ceccherini
f68e12e5ed Tests are a developer's best friends :)) Fixed an incorrect implementation of the private function _FindAfter.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 19:09:27 +00:00
Stefano Ceccherini
d5d5aec43b Adding DataIO classes to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 09:26:56 +00:00
Stefano Ceccherini
ba3487e33a Fixed a typing bug to make it compile again
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 05:42:46 +00:00
Stefano Ceccherini
e0060f3ff2 Implemented the last function (ReplaceSet()). Now it's just a matter
of doing tests for the remaining functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 15:01:32 +00:00
Stefano Ceccherini
5123fbe5e3 Added the correct file name to the copyright notice
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 09:15:42 +00:00
Stefano Ceccherini
c109ab72ae Style changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 09:13:37 +00:00
Stefano Ceccherini
8109fda8d2 Some optimizations in FindFirst functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-24 12:28:50 +00:00
Stefano Ceccherini
eae06be465 Er... it seems I found some time to work on this :)))
Added the last two missing FindLast() functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-21 14:29:15 +00:00
Stefano Ceccherini
21b4758ca8 Some fixes, added the missing compare operators
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-15 19:31:05 +00:00
Stefano Ceccherini
73d1e1fe5e Fixes for bugs exposed by the tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-12 08:11:10 +00:00
Stefano Ceccherini
9a125bf5e0 Some fixes, added the missing operator[], switched to BeOS debug macros,
Implemented the missing Replace functions. Just ReplaceSet is missing
(tests coming)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-11 15:08:38 +00:00
Stefano Ceccherini
294bea18c1 Removed a useless #include
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 13:49:16 +00:00
Stefano Ceccherini
979b68a75b Fixed a stupid bug in BString::CharacterEscape() and committed the correct version of DataIO.cpp (the former was an incorrect version)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 12:51:25 +00:00
Stefano Ceccherini
fde69fce63 Fixed a bug which crashed the BResource tests (sorry Ingo)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 10:09:39 +00:00
Ingo Weinhold
5ecdf4706c Removed DataIO.cpp from the build. BMallocIO is buggy and crashes BResources.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 15:57:04 +00:00
Stefano Ceccherini
a971d340bb Added Escaping/Deescaping. Fixed a bug in Inserting methods
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 13:44:40 +00:00
Stefano Ceccherini
16444b3971 Added CapitalizeEachWord() (ugly implementation, maybe, but it works). This version passes all checked-in tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-03 23:06:19 +00:00
Stefano Ceccherini
d9e38b8715 More functions, more bug fixes.
Just Escaping/Deescaping and some Replacing functions missing


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:39:09 +00:00
Stefano Ceccherini
53fd1e70a4 More BString functions. Constructors, CountChars() and operators "=" and "+=" are tested with cppunit and work fine.
Added string_helper.cpp and .h to compile String.cpp correctly. Those will be removed as soon as we have our working libc.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-30 06:59:26 +00:00
Stefano Ceccherini
3e8f4f3d29 More bugs fixed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-27 16:28:11 +00:00
Stefano Ceccherini
39be953e7a Fixed a stupid typing bug, implemented a pair of other functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-26 14:46:27 +00:00
Stefano Ceccherini
7c64b6d7d5 Implemented format-appending operators, more optimizations and bugfixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-26 06:53:49 +00:00
Stefano Ceccherini
c9ea158353 Write() Returns B_NO_MEMORY if it cant allocate memory
iVS: ----------------------------------------------------------------------


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 19:04:22 +00:00
Stefano Ceccherini
0c444b4265 Changed the way WriteAt() works, and fixed a small bug in SetSize()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 15:48:09 +00:00
Stefano Ceccherini
893d12fc2c Lots of bug fixes and code semplification
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:02:00 +00:00
Stefano Ceccherini
bbe7fb5430 Removed a parenthesis which had jumped in involuntarily
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 12:02:28 +00:00
Stefano Ceccherini
c505627f53 Switch to c++ type casts, some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 11:59:30 +00:00
Stefano Ceccherini
0155e3bd85 Some small optimizations
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 10:32:08 +00:00
Stefano Ceccherini
b5e2aa3555 Revert to the correct support.src
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 13:02:22 +00:00
Stefano Ceccherini
2ffca36a92 Fixed a nasty bug in Append functions. A quick test with BeMamER shows that my BString implementation begin to work :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-18 12:58:31 +00:00
Ingo Weinhold
142126d657 Commented out BString, for it is buggy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-15 21:00:04 +00:00
Stefano Ceccherini
070e067332 Some new methods (Removing), some bug fixes, some optimisations.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-12 12:27:22 +00:00
Stefano Ceccherini
8f86fcdc82 Some bug fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-10 13:38:43 +00:00
Stefano Ceccherini
7c830dc497 More functions and bug fixes, and lot of code from Marc Flerackers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-09 06:50:28 +00:00
ejakowatz
9a46cf2d9b BMallocIO's implementation has been moved from MallocIO.cpp (which is being
left for the time being) to DataIO.cpp.  Updated support.src to remove
MallocIO.cpp from the build list to prevent "already defined" errors.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-08 04:07:51 +00:00
Stefano Ceccherini
9a82280a11 Merged MallocIO.cpp with DataIO.cpp, some code refactoring,
and let a first, basic BString implementetation enter the game


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-06 07:14:43 +00:00
ejakowatz
9078d4766e Added Jack Burton's DataIO-related stuff and cleaned things up a bit.
Several files managed to get left out of the build process; changes to
support.src fixed that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 04:59:46 +00:00
ejakowatz
ff1ade6b3d More tests and fixes for bugs exposed by them. Also removed spurious
instantiation of BRoster from BArchivable, line 323, as per Tyler's
mention. =)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 03:43:06 +00:00
ejakowatz
e75560e6cb Initial checkin.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-25 04:56:14 +00:00
Ingo Weinhold
98602e0409 Adjusted to the new tree structure, though currently (?) not needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@19 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 21:41:59 +00:00
ejakowatz
52a3801208 It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00