DoBreak() public method

public DoBreak ( char input, int start, int len, OnBreak onbreak ) : void
input char
start int
len int
onbreak OnBreak
return void
示例#1
0
        public static void Test1()
        {
            int major, minor, revision;

            NativeTextBreakerLib.MyFtLibGetFullVersion(out major, out minor, out revision);
            NativeTextBreaker.SetICUDataFile(@"d:\WImageTest\icudt57l\icudt57l.dat");

            string            str         = "ABCD EFGH IJKL\0";
            var               textBreaker = new NativeTextBreaker(TextBreakKind.Word, "en-US");
            List <SplitBound> tokens      = new List <SplitBound>();

            textBreaker.DoBreak(str, splitBound =>
            {
                tokens.Add(splitBound);
            });
        }
        public static void Test1()
        {


            int major, minor, revision;
            NativeTextBreakerLib.MyFtLibGetFullVersion(out major, out minor, out revision);
            NativeTextBreaker.SetICUDataFile(@"d:\WImageTest\icudt57l\icudt57l.dat");

            string str = "ABCD EFGH IJKL\0";
            var textBreaker = new NativeTextBreaker(TextBreakKind.Word, "en-US");
            List<SplitBound> tokens = new List<SplitBound>();
            textBreaker.DoBreak(str, splitBound =>
            {
                tokens.Add(splitBound);
            });

        }