#
564de192 |
|
09-Mar-2021 |
Andrew Lindesay <apl@lindesay.co.nz> |
Locale: Support for Percent Formatting Updates BNumberFormat to be able to format percentages. Also re-introduces some unit tests and updates the BNumberFormat ones. This doesn't actually fix #16312 as the defaults for percentage formatting don't seem to track the selected language, but goes part way there. Related to #16312 Change-Id: Id6ddf426ce5571f4e8513c0eb1663cf42ac53cb1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3767 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
78b14420 |
|
24-Jul-2020 |
Leorize <leorize+oss@disroot.org> |
libbnetapi: BUrlRequest now outputs to BDataIO Previously, BUrlRequest returns data received via a callback that can't return any value. This approach have several issues: - It's not possible to signify failures to the request. - Users have to implement custom listeners just to handle the common case of outputting to a buffer/file/etc. - The received data has to be serialized into BMessage when BUrlProtocolDispatchingListener is employed. This can cause a noticible slowdown in real-world scenarios as evident by #10748. With this change, BUrlRequest will output directly into a BDataIO, which exposes a richer API for request handlers to work with (for example a BitTorrent client can request a BPositionIO for non-linear data delivery), as well as simplifying common cases for users. The adaptation only requires one additional API: BHttpRequest::SetStopOnError(). This API simply instructs the HTTP request handler to cancel the request if an HTTP error is occurred. Change-Id: I4160884d77bff0e7678e0a623e2587987704443a Reviewed-on: https://review.haiku-os.org/c/haiku/+/3084 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|