Convert UTF8 bytes into UTF16 characters. If offset is non-zero, conversion starts at that starting point in utf8, re-using the results from the previous call up until offset.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static void UTF8toUTF16(
	byte[] utf8,
	int offset,
	int length,
	UnicodeUtil..::..UTF16Result result
)
Visual Basic
Public Shared Sub UTF8toUTF16 ( _
	utf8 As Byte(), _
	offset As Integer, _
	length As Integer, _
	result As UnicodeUtil..::..UTF16Result _
)
Visual C++
public:
static void UTF8toUTF16(
	array<unsigned char>^ utf8, 
	int offset, 
	int length, 
	UnicodeUtil..::..UTF16Result^ result
)

Parameters

utf8
Type: array<System..::..Byte>[]()[][]

[Missing <param name="utf8"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF8toUTF16(System.Byte[],System.Int32,System.Int32,Lucene.Net.Util.UnicodeUtil.UTF16Result)"]

offset
Type: System..::..Int32

[Missing <param name="offset"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF8toUTF16(System.Byte[],System.Int32,System.Int32,Lucene.Net.Util.UnicodeUtil.UTF16Result)"]

length
Type: System..::..Int32

[Missing <param name="length"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF8toUTF16(System.Byte[],System.Int32,System.Int32,Lucene.Net.Util.UnicodeUtil.UTF16Result)"]

result
Type: Lucene.Net.Util..::..UnicodeUtil..::..UTF16Result

[Missing <param name="result"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF8toUTF16(System.Byte[],System.Int32,System.Int32,Lucene.Net.Util.UnicodeUtil.UTF16Result)"]

See Also