예제 #1
0
파일: BiDi.cs 프로젝트: sillsdev/icu-dotnet
 /// <summary>
 /// Sets a BiDi object to contain the reordering information, especially the resolved levels, for all the characters in a line of text.
 /// </summary>
 /// <param name="start">The line's first index into the text</param>
 /// <param name="limit">Position just behind the line's last index into the text (its last index +1)</param>
 /// <returns></returns>
 public BiDi SetLine(int start, int limit)
 {
     NativeMethods.ubidi_setLine(_biDi, start, limit, out var lineBidi, out var errorCode);
     ExceptionFromErrorCode.ThrowIfError(errorCode, "BiDi line creation failed! " + errorCode);
     return(new BiDi(lineBidi));
 }