SG_EntryGroup::KEY SG_EntryGroup::BuildKey( const lem::UCString &str ) { switch( str.length() ) { case 1: return KEY( str.front(), 0, 0 ); case 2: return KEY( str.front(), str[1], 0 ); default: return KEY( str.front(), str[1], str[2] ); } }
bool lem::is_udelim( const lem::UCString &s ) { return s.size()==1 && lem::is_udelim(s.front()); }