haiku/headers/os
Adrien Destugues fbb725bbdc Add text encoding detection to the Locale Kit.
As usual we ask ICU to do the actual work. The TextEncoding constructor
is fed with a sample of the text to identify (ICU docs recommend a few
hundred bytes). The text is analyzed in various ways (bytes patterns
such as UTF-8 escaping schemes, common letter sequences from known
languages, byte order marks) and an encoding is determined.

Replace code in StyledEdit by this new implementation.

Note that ICU seems to always return some valid encoding, even with fed
with obviously non-text data. This makes StyledEdit open the files no
matter what, where it would error out before.

Fixes #9395.
2016-09-25 18:50:29 +02:00
..
add-ons BMailProtocol: Removed delete/append methods. 2016-01-26 16:01:03 +01:00
app Style fixes to BPeropertyInfo class 2016-04-27 11:10:34 -07:00
arch ARM: remove annoying #warning 2014-10-26 23:40:17 +01:00
be_apps be_apps/ServicesDaemon: Remove. 2016-07-29 18:41:30 -04:00
bluetooth Bluetooth: fix thread safety issue. 2016-02-14 14:07:21 +01:00
device
drivers NodeMonitor: Added B_WATCH_CHILDREN flag. 2016-03-28 14:31:27 +02:00
game Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
interface BListView: Impliment autoscroll 2016-08-18 16:36:46 -07:00
kernel elf.h: add some defines from Linux version 2016-08-27 09:10:01 +02:00
locale Add text encoding detection to the Locale Kit. 2016-09-25 18:50:29 +02:00
mail BMailAccountSettings: use BPathFinder. 2015-11-07 20:55:14 +01:00
media Streaming: Use const reference in place of copying 2016-06-25 01:13:10 +02:00
midi B_BIG_SYNTH_FILE and B_LITTLE_SYNTH_FILE are deprecated. 2015-08-24 17:18:26 +02:00
midi2
net Add support for TLS SNI 2016-06-20 19:42:24 -04:00
package pkgman search: Add --requirements option 2015-11-20 20:55:12 +01:00
storage NodeMonitor: Added B_WATCH_CHILDREN flag. 2016-03-28 14:31:27 +02:00
support BLocker: Make copy constructor & assignment operator private. 2016-05-13 16:23:08 -04:00
translation Minor cleanup of translator roster commit, updated copyright. 2015-11-13 11:37:15 +01:00
AppKit.h
Be.h
BeBuild.h Added some support for GCC 7. 2016-05-05 18:20:26 +02:00
DeviceKit.h
GameKit.h
InterfaceKit.h
KernelKit.h
LocaleKit.h Remove references to NumberFormatImpl. 2014-10-06 08:35:50 +02:00
MailKit.h
MediaKit.h
MidiKit.h
NetKit.h
NetworkKit.h
StorageKit.h
SupportKit.h
TranslationKit.h