Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: third_party/libphonenumber/cpp/src/phonenumberutil.cc

Issue 7044102: Another performance improvement for phone library - at least +25% to previous cl (982ms for 100 i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (C) 2009 Google Inc. 1 // Copyright (C) 2009 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 11 matching lines...) Expand all
22 #include <iostream> 22 #include <iostream>
23 #include <map> 23 #include <map>
24 #include <sstream> 24 #include <sstream>
25 #include <vector> 25 #include <vector>
26 26
27 #include <google/protobuf/message_lite.h> 27 #include <google/protobuf/message_lite.h>
28 #include <unicode/errorcode.h> 28 #include <unicode/errorcode.h>
29 #include <unicode/translit.h> 29 #include <unicode/translit.h>
30 30
31 #include "base/logging.h" 31 #include "base/logging.h"
32 #include "base/singleton.h" 32 #include "base/memory/singleton.h"
33 #include "default_logger.h" 33 #include "default_logger.h"
34 #include "logger_adapter.h" 34 #include "logger_adapter.h"
35 #include "metadata.h" 35 #include "metadata.h"
36 #include "phonemetadata.pb.h" 36 #include "phonemetadata.pb.h"
37 #include "phonenumber.h" 37 #include "phonenumber.h"
38 #include "phonenumber.pb.h" 38 #include "phonenumber.pb.h"
39 #include "regexp_adapter.h" 39 #include "regexp_adapter.h"
40 #include "stringutil.h" 40 #include "stringutil.h"
41 #include "utf/unicodetext.h" 41 #include "utf/unicodetext.h"
42 #include "utf/utf.h" 42 #include "utf/utf.h"
(...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 } 2259 }
2260 } 2260 }
2261 } 2261 }
2262 // One or more of the phone numbers we are trying to match is not a viable 2262 // One or more of the phone numbers we are trying to match is not a viable
2263 // phone number. 2263 // phone number.
2264 return INVALID_NUMBER; 2264 return INVALID_NUMBER;
2265 } 2265 }
2266 2266
2267 } // namespace phonenumbers 2267 } // namespace phonenumbers
2268 } // namespace i18n 2268 } // namespace i18n
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698