public Text toUpperCase(){
  if (_data == null)   return newComposite(_head.toUpperCase(),_tail.toUpperCase());
  Text text=Text.newPrimitive(_count);
  for (int i=0; i < _count; ) {
    text._data[i]=Character.toUpperCase(_data[i++]);
  }
  return text;
}

public Text toUpperCase ( ) { if ( _data == null ) return newComposite ( _head . toUpperCase ( ) , _tail . toUpperCase ( ) ) ; Text text = Text . newPrimitive ( _count ) ; for ( int i = 0 ; i < _count ; ) { text . _data [ i ] = Character . toUpperCase ( _data [ i ++ ] ) ; } return text ; }
converts the characters of this text to upper case .
