Lines Matching refs:rKey
72 sal_Unicode MnemonicGenerator::ImplFindMnemonic( const XubString& rKey ) in ImplFindMnemonic() argument
75 while ( (nIndex = rKey.Search( MNEMONIC_CHAR, nIndex )) != STRING_NOTFOUND ) in ImplFindMnemonic()
77 sal_Unicode cMnemonic = rKey.GetChar( nIndex+1 ); in ImplFindMnemonic()
88 void MnemonicGenerator::RegisterMnemonic( const XubString& rKey ) in RegisterMnemonic() argument
97 XubString aKey = xCharClass->toUpper( rKey, 0, rKey.Len(), rLocale ); in RegisterMnemonic()
131 sal_Bool MnemonicGenerator::CreateMnemonic( XubString& rKey ) in CreateMnemonic() argument
133 if ( !rKey.Len() || ImplFindMnemonic( rKey ) ) in CreateMnemonic()
143 XubString aKey = xCharClass->toUpper( rKey, 0, rKey.Len(), rLocale ); in CreateMnemonic()
223 rKey.Insert( MNEMONIC_CHAR, nIndex ); in CreateMnemonic()
275 rKey.Insert( MNEMONIC_CHAR, nBestIndex ); in CreateMnemonic()
284 if ( !bChanged && (nCJK == 1) && rKey.Len() ) in CreateMnemonic()
299 nIndex = rKey.Len(); in CreateMnemonic()
303 if ( rKey.EqualsAscii( ">>", nIndex-2, 2 ) || in CreateMnemonic()
304 rKey.Equals( cGreaterGreater, nIndex-2, 2 ) ) in CreateMnemonic()
310 if ( rKey.EqualsAscii( "...", nIndex-3, 3 ) || in CreateMnemonic()
311 rKey.Equals( cDotDotDot, nIndex-3, 3 ) ) in CreateMnemonic()
316 sal_Unicode cLastChar = rKey.GetChar( nIndex-1 ); in CreateMnemonic()
323 rKey.Insert( aStr, nIndex ); in CreateMnemonic()