]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/inputext.h
2 **********************************************************************
3 * Copyright (C) 2005-2008, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
15 * This is an internal header for the Character Set Detection code. The
16 * name is probably too generic...
20 #include "unicode/uobject.h"
22 #if !UCONFIG_NO_CONVERSION
26 class InputText
: public UMemory
29 InputText(const InputText
&);
31 InputText(UErrorCode
&status
);
34 void setText(const char *in
, int32_t len
);
35 void setDeclaredEncoding(const char *encoding
, int32_t len
);
37 void MungeInput(UBool fStripTags
);
39 // The text to be checked. Markup will have been
40 // removed if appropriate.
42 int32_t fInputLen
; // Length of the byte data in fInputBytes.
43 // byte frequency statistics for the input text.
44 // Value is percent, not absolute.
45 // Value is rounded up, so zero really means zero occurences.
47 UBool fC1Bytes
; // True if any bytes in the range 0x80 - 0x9F are in the input;false by default
48 char *fDeclaredEncoding
;
50 const uint8_t *fRawInput
; // Original, untouched input bytes.
51 // If user gave us a byte array, this is it.
52 // If user gave us a stream, it's read to a
54 int32_t fRawLength
; // Length of data in fRawInput array.
61 #endif /* __INPUTEXT_H */