Porting fix for AYTF to C++, small comment updates.
[platform/upstream/libphonenumber.git] / cpp / src / phonenumbers / asyoutypeformatter.h
index b7e3e6e..8e865f8 100644 (file)
@@ -115,6 +115,8 @@ class AsYouTypeFormatter {
 
   void AttemptToChoosePatternWithPrefixExtracted(string* formatted_number);
 
+  const string& GetExtractedNationalPrefix() const;
+
   // Some national prefixes are a substring of others. If extracting the
   // shorter NDD doesn't result in a number we can format, we try to see if we
   // can extract a longer version here.
@@ -222,7 +224,7 @@ class AsYouTypeFormatter {
   bool should_add_space_after_national_prefix_;
   // This contains the national prefix that has been extracted. It contains only
   // digits without formatting.
-  string national_prefix_extracted_;
+  string extracted_national_prefix_;
   string national_number_;
 
   list<const NumberFormat*> possible_formats_;