public static FastStr of ( StringBuilder sb ) { int sz = sb . length ( ) ; if ( 0 == sz ) return EMPTY_STR ; char [ ] buf = new char [ sz ] ; for ( int i = 0 ; i < sz ; ++ i ) { buf [ i ] = sb . charAt ( i ) ; } return new FastStr ( buf , 0 , sz ) ; }
Construct a FastStr from a StringBuilder