mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -30,7 +30,7 @@ class Foundation_API UTF16Encoding: public TextEncoding
|
||||
///
|
||||
/// When converting from UTF-16 to Unicode, surrogates are
|
||||
/// reported as they are - in other words, surrogate pairs
|
||||
/// are not combined into one Unicode character.
|
||||
/// are not combined into one Unicode character.
|
||||
/// When converting from Unicode to UTF-16, however, characters
|
||||
/// outside the 16-bit range are converted into a low and
|
||||
/// high surrogate.
|
||||
@@ -42,28 +42,28 @@ public:
|
||||
LITTLE_ENDIAN_BYTE_ORDER,
|
||||
NATIVE_BYTE_ORDER
|
||||
};
|
||||
|
||||
|
||||
UTF16Encoding(ByteOrderType byteOrder = NATIVE_BYTE_ORDER);
|
||||
/// Creates and initializes the encoding for the given byte order.
|
||||
|
||||
|
||||
UTF16Encoding(int byteOrderMark);
|
||||
/// Creates and initializes the encoding for the byte-order
|
||||
/// indicated by the given byte-order mark, which is the Unicode
|
||||
/// character 0xFEFF.
|
||||
|
||||
|
||||
~UTF16Encoding();
|
||||
|
||||
|
||||
ByteOrderType getByteOrder() const;
|
||||
/// Returns the byte-order currently in use.
|
||||
|
||||
|
||||
void setByteOrder(ByteOrderType byteOrder);
|
||||
/// Sets the byte order.
|
||||
|
||||
|
||||
void setByteOrder(int byteOrderMark);
|
||||
/// Sets the byte order according to the given
|
||||
/// byte order mark, which is the Unicode
|
||||
/// character 0xFEFF.
|
||||
|
||||
|
||||
const char* canonicalName() const;
|
||||
bool isA(const std::string& encodingName) const;
|
||||
const CharacterMap& characterMap() const;
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
int convert(int ch, unsigned char* bytes, int length) const;
|
||||
int queryConvert(const unsigned char* bytes, int length) const;
|
||||
int sequenceLength(const unsigned char* bytes, int length) const;
|
||||
|
||||
|
||||
private:
|
||||
bool _flipBytes;
|
||||
static const char* _names[];
|
||||
|
||||
Reference in New Issue
Block a user