public RuleBasedBreakIterator getBreakIterator(int script) {switch(script) {case UScript.JAPANESE: return (RuleBasedBreakIterator)cjkBreakIterator.clone();case UScript.MYANMAR:if (myanmarAsWords) {return (RuleBasedBreakIterator)defaultBreakIterator.clone();} else {return (RuleBasedBreakIterator)myanmarSyllableIterator.clone();}default: return (RuleBasedBreakIterator)defaultBreakIterator.clone();}}

public RuleBasedBreakIterator getBreakIterator ( int script ) { switch ( script ) { case UScript . JAPANESE : return ( RuleBasedBreakIterator ) cjkBreakIterator . clone ( ) ; case UScript . MYANMAR : if ( myanmarAsWords ) { return ( RuleBasedBreakIterator ) defaultBreakIterator . clone ( ) ; } else { return ( RuleBasedBreakIterator ) myanmarSyllableIterator . clone ( ) ; } default : return ( RuleBasedBreakIterator ) defaultBreakIterator . clone ( ) ; } }
public override BreakIterator GetBreakIterator(int script){switch (script){case UScript.Japanese: return (BreakIterator)cjkBreakIterator.Clone();case UScript.Myanmar:if (myanmarAsWords){return (BreakIterator)defaultBreakIterator.Clone();}else{return (BreakIterator)myanmarSyllableIterator.Clone();}default: return (BreakIterator)defaultBreakIterator.Clone();}}
