Encode characters from this String, starting at offset for length characters. 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(
	string s,
	int offset,
	int length,
	UnicodeUtil..::..UTF8Result result
)
Visual Basic
Public Shared Sub UTF16toUTF8 ( _
	s As String, _
	offset As Integer, _
	length As Integer, _
	result As UnicodeUtil..::..UTF8Result _
)
Visual C++
public:
static void UTF16toUTF8(
	String^ s, 
	int offset, 
	int length, 
	UnicodeUtil..::..UTF8Result^ result
)

Parameters

s
Type: System..::..String

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

offset
Type: System..::..Int32

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

length
Type: System..::..Int32

[Missing <param name="length"/> documentation for "M:Lucene.Net.Util.UnicodeUtil.UTF16toUTF8(System.String,System.Int32,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.String,System.Int32,System.Int32,Lucene.Net.Util.UnicodeUtil.UTF8Result)"]

See Also