Method UTF16toUTF8
UTF16toUTF8(Char[], Int32, Int32, BytesRef)
Encode characters from a char[] source
, starting at
offset
for length
chars. After encoding, result.Offset
will always be 0.
Declaration
public static void UTF16toUTF8(char[] source, int offset, int length, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | source | |
System.Int32 | offset | |
System.Int32 | length | |
BytesRef | result |
UTF16toUTF8(ICharSequence, Int32, Int32, BytesRef)
Encode characters from this ICharSequence, starting at offset
for length
characters. After encoding, result.Offset
will always be 0.
Declaration
public static void UTF16toUTF8(ICharSequence s, int offset, int length, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | s | |
System.Int32 | offset | |
System.Int32 | length | |
BytesRef | result |
UTF16toUTF8(String, Int32, Int32, BytesRef)
Encode characters from this offset
for length
characters. After encoding, result.Offset
will always be 0.
LUCENENET specific.
Declaration
public static void UTF16toUTF8(string s, int offset, int length, BytesRef result)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | |
System.Int32 | offset | |
System.Int32 | length | |
BytesRef | result |