shadow303
ac3bb782a8
gcc 3 fix
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:11:20 +00:00
haydentech
d2a9d5e5fe
Namespace- and gcc3-related fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 18:34:34 +00:00
ejakowatz
2a5153718e
Minor tweaks.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-23 23:55:32 +00:00
ejakowatz
9abc4d2dcd
Added params for specifying whether to copy the buffer on construction.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-23 23:07:30 +00:00
ejakowatz
b1055b4c2d
This is all the code for the backing store for BMessage (BMessageBody &
...
BMessageField) for the "template madness" version. Also included is
BDataBuffer which is a little reference counting raw data container.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 07:58:17 +00:00
Ingo Weinhold
5c905a2f6a
Added missing newline at end of file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 20:11:18 +00:00
Ingo Weinhold
7319572398
Re-added BString to the built.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 20:10:14 +00:00
Ingo Weinhold
bd68efa667
Removed BString from the build. It is broken.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 23:14:08 +00:00
Stefano Ceccherini
1783edd55c
Added a big patch from Oliver Tappe. BString now is much faster when it has to deal with very long strings. Thanks Oliver. Fixed the (in)famous LockBuffer(0)->UnlockBuffer(-1) R5 bug.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-11 19:16:18 +00:00
Stefano Ceccherini
2d4125b748
this should be the definitive (excluded bugfixes) implementation of BBufferIO. Buffered write should work fine, as buffered read did.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-22 16:40:56 +00:00
Stefano Ceccherini
51ee67dc8f
Fixed an obvious bug, simplified a bit the code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-17 12:32:09 +00:00
Stefano Ceccherini
089f7debba
Implemented buffered read in BBufferIO class, and added it to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-17 12:17:41 +00:00
Stefano Ceccherini
a8dee23ea0
A fix for a Replace function, some checks which makes the code
...
more robust, some style changes, some more comments.
Started to document the class with Doxygen comments.
(I made too many changes to keep the file local :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-10 10:19:56 +00:00
Stefano Ceccherini
005069f4e1
Changed a "" include to a <> one. Some cosmetic changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-02 11:14:33 +00:00
François Revol
a3d1f07f83
Fix by Jack Burton
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-10 16:30:39 +00:00
Stefano Ceccherini
d19f7b5dad
Fixed the behaviour of DoForEach() functions (from Isaac Yonemoto implementation)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-10 13:02:00 +00:00
Stefano Ceccherini
9c81f09d9f
Implemented some missing functions (MoveItems is still lacking), added the copyright header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-06 14:25:05 +00:00
Stefano Ceccherini
a42a3ab57f
A skeleton for the BBufferIO class.
...
(Since we have a header, I think we should also have an implementation...
;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 09:26:32 +00:00
ejakowatz
d546b00e22
Undid the oh-so-1337 utf_char_len "optimization" (which is not only slower,
...
but doesn't handle invalid UTF-8 strings correctly) in CountChars().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 03:47:48 +00:00
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