Exemplo n.º 1
0
        public override BreakIterator CreateBreakIterator(ULocale locale, int kind)
        {
            // TODO: convert to ULocale when service switches over
            if (service.IsDefault())
            {
                return(CreateBreakInstance(locale, kind));
            }
            ULocale[]     actualLoc = new ULocale[1];
            BreakIterator iter      = (BreakIterator)service.Get(locale, kind,
                                                                 actualLoc);

            iter.SetLocale(actualLoc[0], actualLoc[0]);     // services make no
                                                            // distinction between
                                                            // actual & valid
            return(iter);
        }