Encode characters from a char[] source, starting at offset and stopping when the character 0xffff is seen. Returns the number of bytes written to bytesOut.

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

Syntax

C#
public static void UTF16toUTF8(
	char[] source,
	int offset,
	UnicodeUtil..::..UTF8Result result
)
Visual Basic
Public Shared Sub UTF16toUTF8 ( _
	source As Char(), _
	offset As Integer, _
	result As UnicodeUtil..::..UTF8Result _
)
Visual C++
public:
static void UTF16toUTF8(
	array<wchar_t>^ source, 
	int offset, 
	UnicodeUtil..::..UTF8Result^ result
)

Parameters

source
Type: array<System..::..Char>[]()[][]

[Missing <param name="source"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF16toUTF8(System.Char[],System.Int32,Lucene.Net.Util.UnicodeUtil.UTF8Result)"]

offset
Type: System..::..Int32

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

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

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

See Also