/external/icu4c/i18n/ |
H A D | upluralrules.cpp | 36 UChar *keyword, int32_t capacity, 42 if (keyword == NULL ? capacity != 0 : capacity < 0) { 47 return result.extract(keyword, capacity, *status); 34 uplrules_select(const UPluralRules *uplrules, double number, UChar *keyword, int32_t capacity, UErrorCode *status) argument
|
H A D | selfmt.cpp | 86 SelectFormat::format(const UnicodeString& keyword, argument 93 // Check for the validity of the keyword 94 if (!PatternProps::isIdentifier(keyword.getBuffer(), keyword.length())) { 101 int32_t msgStart = findSubMessage(msgPattern, 0, keyword, status); 126 const UnicodeString& keyword, UErrorCode& ec) { 141 if(pattern.partSubstringMatches(part, keyword)) { 142 // keyword matches 125 findSubMessage(const MessagePattern& pattern, int32_t partIndex, const UnicodeString& keyword, UErrorCode& ec) argument
|
H A D | plurfmt.cpp | 364 // The keyword is empty until we need to match against non-explicit, not-"other" value. 365 // Then we get the keyword from the selector. 367 // or if the only non-explicit keyword is "other".) 368 UnicodeString keyword; local 371 // to avoid matching the keyword again (duplicates are allowed) 377 // We remember the first matching-keyword sub-message if we have not seen 381 // We avoid matching the keyword twice by also setting haveKeywordMatch=true 382 // at the first keyword match. 403 // plural keyword like "few" or "other" 408 if(0 == keyword [all...] |
/external/chromium/chrome/browser/ui/omnibox/ |
H A D | location_bar_util.cc | 16 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword) { argument 22 WideToUTF16Hack(keyword));
|
/external/chromium/chrome/browser/ui/views/location_bar/ |
H A D | keyword_hint_view.h | 23 // user when the selected url has a corresponding keyword. 39 void SetKeyword(const string16& keyword); 40 string16 keyword() const { return keyword_; } function in class:KeywordHintView 54 // The keyword.
|
H A D | selected_keyword_view.cc | 53 void SelectedKeywordView::SetKeyword(const string16& keyword) { argument 54 keyword_ = keyword; 55 if (keyword.empty()) 63 GetKeywordShortName(keyword, &is_extension_keyword);
|
H A D | selected_keyword_view.h | 35 // The current keyword, or an empty string if no keyword is displayed. 36 void SetKeyword(const string16& keyword); 37 string16 keyword() const { return keyword_; } function in class:SelectedKeywordView 42 // The keyword we're showing. If empty, no keyword is selected. 48 // label contains the complete description of the keyword, the second
|
H A D | keyword_hint_view.cc | 51 void KeywordHintView::SetKeyword(const string16& keyword) { argument 52 keyword_ = keyword; 62 GetKeywordShortName(keyword, &is_extension_keyword);
|
/external/icu4c/test/cintltst/ |
H A D | cpluralrulestest.c | 68 UChar keyword[kKeywordBufLen]; local 70 int32_t keywdLen = uplrules_select(uplrules, testItemPtr->number, keyword, kKeywordBufLen, &status); 72 keyword[kKeywordBufLen-1] = 0; 76 if ( u_strcmp(keyword, keywordExpected) != 0 ) { 79 testItemPtr->locale, testItemPtr->number, testItemPtr->keywordExpected, u_austrcpy(bcharBuf,keyword) );
|
/external/chromium/chrome/browser/ui/search_engines/ |
H A D | keyword_editor_controller.cc | 32 const string16& keyword, 41 template_url->set_keyword(keyword); 57 const string16& keyword, 68 template_url->keyword() == keyword && 75 table_model_->ModifyTemplateURL(index, title, keyword, url); 31 AddTemplateURL(const string16& title, const string16& keyword, const std::string& url) argument 55 ModifyTemplateURL(const TemplateURL* template_url, const string16& title, const string16& keyword, const std::string& url) argument
|
H A D | search_engine_tab_helper.cc | 54 // Checks to see if we should generate a keyword based on the OSDD, and if 56 // keyword. 93 // a form submit and use its url to generate the keyword from. 112 string16 keyword = TemplateURLModel::GenerateKeyword( 117 // new keyword will be created when done. 119 keyword, 145 // Only generate a keyword if the previous page wasn't itself a form 152 string16 keyword = local 154 if (keyword.empty()) 169 if (!url_model->CanReplaceKeyword(keyword, ur [all...] |
H A D | template_url_table_model.cc | 192 string16 keyword = url.keyword(); local 193 keyword = base::i18n::GetDisplayStringInLTRDirectionality(keyword); 194 return keyword; 269 const string16& keyword, 274 template_url_model_->ResetTemplateURL(template_url, title, keyword, url); 331 const TemplateURL* keyword = &GetTemplateURL(index); local 334 if (current_default == keyword) 338 template_url_model_->SetDefaultSearchProvider(keyword); 267 ModifyTemplateURL(int index, const string16& title, const string16& keyword, const std::string& url) argument [all...] |
/external/chromium/chrome/browser/autocomplete/ |
H A D | autocomplete_popup_model.cc | 103 string16 keyword; local 104 const bool is_keyword_hint = GetKeywordForMatch(match, &keyword); 113 keyword, is_keyword_hint); 116 keyword, is_keyword_hint); 132 string16* keyword) const { 133 // If the current match is a keyword, return that as the selected keyword. 135 keyword->assign(match.template_url->keyword()); 139 // See if the current match's fill_into_edit corresponds to a keyword [all...] |
H A D | autocomplete_edit.h | 55 // status of any keyword- or hint-related state. 93 const string16& keyword, 99 const string16 keyword; member in struct:AutocompleteEditModel::State 256 const string16& keyword); 260 // Accessors for keyword-related state (see comments on keyword_ and 262 const string16& keyword() const { return keyword_; } function in class:AutocompleteEditModel 265 // Accepts the current keyword hint as a keyword. It always returns true for 269 // Clears the current keyword. |visible_text| is the (non-keyword) tex [all...] |
H A D | keyword_provider.cc | 25 // Helper functor for Start(), for ending keyword mode unless explicitly told 84 // Helper functor for Start(), for sorting keyword matches by quality. 87 // A keyword is of higher quality when a greater fraction of it has been 91 // probably better rankings than the fraction of the keyword typed. We should 114 string16 keyword; 115 if (!ExtractKeywordFromInput(input, &keyword, remaining_input)) 124 const TemplateURL* template_url = model->GetTemplateURLForKeyword(keyword); 130 // This object ensures we end keyword mode if we exit the function without 131 // toggling keyword mode to on. 144 // Split user input into a keyword an 157 string16 keyword, remaining_input; local 276 ExtractKeywordFromInput(const AutocompleteInput& input, string16* keyword, string16* remaining_input) argument 382 CreateAutocompleteMatch( TemplateURLModel* model, const string16& keyword, const AutocompleteInput& input, size_t prefix_length, const string16& remaining_input, int relevance) argument 464 string16 keyword, remaining_input; local [all...] |
/external/chromium/chrome/browser/history/ |
H A D | url_database_unittest.cc | 125 // Tests adding, querying and deleting keyword visits. 136 // Add a keyword visit. 138 string16 keyword = UTF8ToUTF16("visit"); local 139 ASSERT_TRUE(SetKeywordSearchTermsForURL(url_id, keyword_id, keyword)); 143 GetMostRecentKeywordSearchTerms(keyword_id, keyword, 10, &matches); 145 ASSERT_EQ(keyword, matches[0].term); 151 EXPECT_EQ(keyword, keyword_search_term_row.term); 153 // Delete the keyword visit. 158 GetMostRecentKeywordSearchTerms(keyword_id, keyword, 10, &matches); 164 // Make sure deleting a URL also deletes a keyword visi [all...] |
/external/chromium/chrome/browser/search_engines/ |
H A D | search_provider_install_data_unittest.cc | 27 const std::string& keyword) { 30 t_url->set_keyword(UTF8ToUTF16(keyword)); 31 t_url->set_short_name(UTF8ToUTF16(keyword)); 26 CreateTemplateURL(const std::string& url, const std::string& keyword) argument
|
H A D | template_url_fetcher_unittest.cc | 80 void StartDownload(const string16& keyword, 158 const string16& keyword, 175 keyword, osdd_url, favicon_url, new TemplateURLFetcherTestCallbacks(this), 187 string16 keyword(ASCIIToUTF16("test")); 190 ASSERT_FALSE(test_util_.model()->GetTemplateURLForKeyword(keyword)); 193 StartDownload(keyword, osdd_file_name, 205 keyword); 213 string16 keyword(ASCIIToUTF16("test")); 216 ASSERT_FALSE(test_util_.model()->GetTemplateURLForKeyword(keyword)); 219 StartDownload(keyword, osdd_file_nam 157 StartDownload( const string16& keyword, const std::string& osdd_file_name, TemplateURLFetcher::ProviderType provider_type, bool check_that_file_exists) argument 228 string16 keyword; member in struct:__anon2258 [all...] |
H A D | template_url_model.h | 67 const char* const keyword; member in struct:TemplateURLModel::Initializer 77 // Generates a suitable keyword for the specified url. Returns an empty 78 // string if a keyword couldn't be generated. If |autodetected| is true, we 84 // Removes any unnecessary characters from a user input keyword. 86 static string16 CleanUserInputKeyword(const string16& keyword); 100 // keyword/url pair, or there is one but it can be replaced. If there is an 101 // existing keyword that can be replaced and template_url_to_replace is 102 // non-NULL, template_url_to_replace is set to the keyword to replace. 106 bool CanReplaceKeyword(const string16& keyword, 117 // Looks up |keyword| an [all...] |
H A D | template_url_fetcher.cc | 29 const string16& keyword, 54 string16 keyword() const { return keyword_; } function in class:TemplateURLFetcher::RequestDelegate 79 const string16& keyword, 87 keyword_(keyword), 129 // Make sure we can still replace the keyword, i.e. the fetch was successful. 158 // Generate new keyword from URL in OSDD for none autodetected case. 159 // Previous keyword was generated from URL where OSDD was placed and 182 // Try to generate a keyword automatically when we are setting the default 183 // provider. The keyword isn't as important in this case. 188 // Concatenate a number at end of the keyword an 77 RequestDelegate( TemplateURLFetcher* fetcher, const string16& keyword, const GURL& osdd_url, const GURL& favicon_url, TemplateURLFetcherCallbacks* callbacks, ProviderType provider_type) argument 270 ScheduleDownload( const string16& keyword, const GURL& osdd_url, const GURL& favicon_url, TemplateURLFetcherCallbacks* callbacks, ProviderType provider_type) argument [all...] |
/external/chromium/chrome/browser/extensions/ |
H A D | extension_omnibox_api.cc | 234 const TemplateURL* keyword, 237 DCHECK(keyword->IsExtensionKeyword()); 239 GetDefaultSuggestionForExtension(profile, keyword->GetExtensionId()); 232 ApplyDefaultSuggestionForExtensionKeyword( Profile* profile, const TemplateURL* keyword, const string16& remaining_input, AutocompleteMatch* match) argument
|
/external/chromium/chrome/browser/importer/ |
H A D | profile_import_process_messages.h | 260 WriteParam(m, p.keyword()); 287 string16 keyword; local 311 !ReadParam(m, iter, &keyword) || 345 p->set_keyword(keyword); 436 int, /* default keyword index */
|
/external/chromium/chrome/browser/policy/ |
H A D | configuration_policy_pref_store_unittest.cc | 541 const char* const keyword = "MyKeyword"; local 551 Value::CreateStringValue(keyword)); 573 EXPECT_TRUE(StringValue(keyword).Equals(value)); 594 const char* const keyword = "MyKeyword"; local 602 Value::CreateStringValue(keyword)); 634 const char* const keyword = "MyKeyword"; local 644 Value::CreateStringValue(keyword));
|
/external/chromium/chrome/browser/ui/webui/options/ |
H A D | search_engine_manager_handler.cc | 153 dict->SetString("keyword", table_model->GetText( 217 const string16& keyword, 220 list_controller_->ModifyTemplateURL(template_url, title, keyword, url); 222 list_controller_->AddTemplateURL(title, keyword, url); 233 string16 keyword; local 237 !args->GetString(ENGINE_KEYWORD, &keyword) || 246 validity.SetBoolean("keyword", edit_controller_->IsKeywordValid(keyword)); 264 string16 keyword; local 267 !args->GetString(ENGINE_KEYWORD, &keyword) || 214 OnEditedKeyword( const TemplateURL* template_url, const string16& title, const string16& keyword, const std::string& url) argument [all...] |
/external/jpeg/ |
H A D | rdjpgcom.c | 408 keymatch (char * arg, const char * keyword, int minchars) argument 409 /* Case-insensitive matching of (possibly abbreviated) keyword switches. */ 410 /* keyword is the constant keyword (must be lower case already), */ 417 if ((ck = *keyword++) == '\0') 418 return 0; /* arg longer than keyword, no good */
|