Skip to content

Commit

Permalink
Updated (NON FUNCTIONAL) Version of ParseWithOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolJakubKrawiec committed Jan 16, 2025
1 parent 9d7975a commit 1a8629e
Show file tree
Hide file tree
Showing 11 changed files with 863,757 additions and 16 deletions.
855,021 changes: 855,021 additions & 0 deletions cpp/src/phonenumbers/geocoding/geocoding_data.cc

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "i18n/phonenumbers/parsingoptions.h"

#include "i18n/identifiers/regioncode.h"
#include "phonenumbers/region_code.h"

namespace i18n {
namespace phonenumbers {

ParsingOptions& ParsingOptions::SetDefaultRegion(
i18n_identifiers::RegionCode default_region) {
const string& default_region) {
default_region_ = default_region;
return *this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef I18N_PHONENUMBERS_PARSINGOPTIONS_H_
#define I18N_PHONENUMBERS_PARSINGOPTIONS_H_

#include "i18n/identifiers/regioncode.h"
#include "phonenumbers/test_util.h"

namespace i18n {
namespace phonenumbers {
Expand All @@ -16,7 +16,7 @@ class ParsingOptions {

// Set the value for default_region_.
ParsingOptions& SetDefaultRegion(
i18n_identifiers::RegionCode default_region);
const string& default_region);

// Set the value for keep_raw_input_.
ParsingOptions& SetKeepRawInput(bool keep_raw_input);
Expand All @@ -29,8 +29,7 @@ class ParsingOptions {
// format, the country_code will be set to the one of this default region. If
// the number is guaranteed to start with a '+' followed by the country
// calling code, then RegionCode.ZZ or null can be supplied.
i18n_identifiers::RegionCode default_region_ =
i18n_identifiers::RegionCode::ZZ();
const string& default_region_ = RegionCode::ZZ();

// Whether the raw input should be kept in the PhoneNumber object. If true,
// the raw_input field and country_code_source fields will be populated.
Expand Down
Loading

0 comments on commit 1a8629e

Please sign in to comment.