1070 Commits

Author SHA1 Message Date
Stefano Ceccherini
ba92606354 Fixed SetRunArray(). It was callign StyleBuffer::SetStyleRange() with a BFont** pointer instead of a BFont* one (that fix is by Marc Flerackers, as the whole class, BTW :)). Refactored CharClassification(), also added some more separator characters. Also foreign characters should be added here (Andrew?). Fixed [Allow][Disallow]Chars(). Fixed a linking issue when we don't link to libbe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 09:29:25 +00:00
beveloper
b93355ab58 it was missing these two functions...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 01:28:00 +00:00
beveloper
6ecb8ce9a0 removed stupid type cast
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 01:19:01 +00:00
beveloper
ad159f4343 cleaned up meaning of first constructor parameter
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 00:54:54 +00:00
beveloper
188ad70f3d Replaced the broken BBufferCache implementation.
According to the BeBook, it is NOT allowed to allocate one large
pool, instead the memory blocks must be allocated individually.
To achieve O(1) for both Save() and Get() function, only one list
of free blocks is maintained.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 00:25:56 +00:00
Ingo Weinhold
7c4d270b25 Check in per Jack Burton: Fixed invalid delete[] in destructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-27 12:03:50 +00:00
shatty
d3fdd732fa fix the "extra bytes at the end" bug that happens when the existing file has more bytes than the new file. I chose to SetSize(textLength) after Write instead of SetSize(0) before the Write because there is less of a chance of complete data loss if the Write fails somehow. right? (write?) :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-27 01:33:17 +00:00
Ingo Weinhold
66abd4d0a6 Fixed a few warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 21:36:38 +00:00
Ingo Weinhold
9f01bd9197 send_message(): B_ANY_TOKEN -> B_PREFERRED_TOKEN. That's the right one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 15:29:11 +00:00
Ingo Weinhold
d4d9f7015a flatten_hdr() checks the reply handler token for B_NULL_TOKEN, so it's not wise to use exactly that one as dummy for sending synchronous messages.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 15:07:06 +00:00
ejakowatz
0ab25acded Fixed bug with fBody not being properly initialized on construction.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 04:47:51 +00:00
ejakowatz
e9e500cb9e Minor tweak to BHandler::UnlockLooper()
Added calls to _init_message_(), _delete_message_(), and
_msg_cache_cleanup() to InitTerminateLibBe.cpp
Finished first implementation of BMessage::SendReply(), BMessage::_send_(),
and BMessage::_send_message()
Add BMessage to app.src, removed BBlockCache from support.src.
New BMessage::Private class has functions for twiddling BMessage internals


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-25 07:55:52 +00:00
shatty
884d2b83a6 error protection for Get functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-13 10:12:46 +00:00
shatty
5b7ea503a7 refine the error handling behavior. note: we depart from the bebook specification for returning B_ERROR when no characters are converted. we do this in exactly one situation: when there are no bytes in the input. this behavior is the behavior given by the R5 libs themselves. not having this behavior caused an error in our stylededit as well. stylededit has been fixed to not exercise this functionality. also added in the two most popular chinese encodings for my own evil purposes. GB18030 support is required to legally sell an operating system in mainland china as well. GB18030 support encompasses GBK and GB2312, additionally.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-13 05:38:07 +00:00
shatty
323ddd5728 update from jack burton
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-08 09:55:12 +00:00
shatty
9fdfaac6f3 unix linefeeds
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-08 09:53:59 +00:00
Tyler Dauwalder
417b2882c9 No reason for err to be an ssize_t in this function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-05 07:41:18 +00:00
shadow303
17e6de7a37 gcc 3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:46:53 +00:00
shadow303
72f334d12f gcc 3 fixes; strip ^M characters from TextView.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:42:51 +00:00
shatty
28f10fcaac no const for now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 09:01:13 +00:00
Ingo Weinhold
a2a6c4bdd7 Moved and documented compare_string().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 00:01:57 +00:00
shatty
fb2e95f496 dunno when beos changes the state, but it seems to leave at 0 for a while so I am going to have it be consistent that way
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 07:34:30 +00:00
shatty
d4d7d73937 remove debugging print things
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 07:18:15 +00:00
shatty
9c5fdc6c2a new and better working implementations for conversion functions, including better abstraction
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 07:17:30 +00:00
shatty
5f410263f9 added iconv_close to free resources and made a new input_buffer_t typedef to ease switching iconv implementations
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 04:57:37 +00:00
shatty
ec4fc3af6a fixed the 14th encoding, which is not FIXED japanese but rather JIS0208, yay!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 04:56:56 +00:00
shatty
1e4b516951 need libiconv.so for new libtextencodings.so to work
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 00:57:59 +00:00
shatty
b9de54c8ef written to use iconv.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 00:04:53 +00:00
Ingo Weinhold
eceac61bcb Implemented disk device job iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:53:11 +00:00
Ingo Weinhold
9e5ec2a534 Implemented BDiskDeviceJob. Should be complete.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:52:39 +00:00
Ingo Weinhold
fc45522e03 Added ContentSize(). Added default parameters for CanMove() and CanResize().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:35:05 +00:00
DarkWyrm
c3ba6ec990 Checking in a wild pointer fix which I *swear* was already checked in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-29 04:05:55 +00:00
Stefano Ceccherini
a5b449ce66 Added BScreen implementation, which uses BPrivateScreen (not yet implemented).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 14:35:02 +00:00
shatty
fdab93a590 added checking again MIME name
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 22:06:27 +00:00
shatty
312e206dd3 IANA information on character sets
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 04:26:43 +00:00
shatty
172722fe52 added default constructor, which just happens to init to UTF-8. do not count on this feature. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 01:34:30 +00:00
shatty
dbfb944d44 added all the remaining R5 text encodings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 00:58:01 +00:00
shatty
a4b6e788fc build libtextencoding.so with new stubs and character set support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 21:28:35 +00:00
shatty
4e7a2f6c8b utf8 conversions file with stub implementations of convert_to_utf8 and convert_from_utf8
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 21:28:02 +00:00
shatty
2534c14ea1 initialize global character set array
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 21:27:13 +00:00
shatty
05c932b5ac add character set support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 21:26:36 +00:00
DarkWyrm
297ffbbb1a Removed memory leak in InitData
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:54:43 +00:00
DarkWyrm
dfa226a101 WindowLookToInteger and WindowFeelToInteger return the values specified in R5's Window.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:47:52 +00:00
Ingo Weinhold
426b44c60b Implemented disk device updating. Some changes due to syscall changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:19:23 +00:00
Ingo Weinhold
247a3aae82 Small changes due to modified syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:12:54 +00:00
Ingo Weinhold
d61adbe244 CanMove() returns a list of partitions to be unmounted for moving, now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-21 14:17:33 +00:00
Ingo Weinhold
24c9a2dc58 Implemented modification methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 22:39:49 +00:00
Ingo Weinhold
fb82e723f2 Implemented BPartitionableSpace.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 17:21:06 +00:00
Ingo Weinhold
63e9aa86f0 _kern_get_next_supported_partition_type() syscall changed slightly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 17:20:05 +00:00
Ingo Weinhold
de8cdceda5 Implemented all Can*() and Validate*() methods. Signature changes to the methods for resizing and moving.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 20:38:50 +00:00