Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/src/address_formatter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace {

const char kCommaSeparator[] = ", ";
const char kSpaceSeparator[] = " ";
const char kArabicCommaSeparator[] = u8"، ";
const char kArabicCommaSeparator[] = "، ";

const char kLanguagesThatUseSpace[][3] = {
"th",
Expand Down
1 change: 1 addition & 0 deletions cpp/src/format_element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <cassert>
#include <ostream>
#include <string>

namespace i18n {
namespace addressinput {
Expand Down
40 changes: 20 additions & 20 deletions cpp/src/post_box_matchers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,26 @@ struct LanguageInfo {
};

constexpr const LanguageInfo kLanguageInfoMap[] = {
{"ar", u8R"(صندوق بريد|ص[-. ]ب)"},
{"cs", u8R"((?i)p\.? ?p\.? \d)"},
{"da", u8R"((?i)Postboks)"},
{"de", u8R"((?i)Postfach)"},
{"el", u8R"((?i)T\.? ?Θ\.? \d{2})"},
{"en", u8R"(Private Bag|Post(?:al)? Box)"},
{"es", u8R"((?i)(?:Apartado|Casillas) de correos?)"},
{"fi", u8R"((?i)Postilokero|P\.?L\.? \d)"},
{"fr", u8R"((?i)Bo(?:[iî]|î)te Postale|BP \d|CEDEX \d)"},
{"hr", u8R"((?i)p\.? ?p\.? \d)"},
{"hu", u8R"((?i)Postafi(?:[oó]|ó)k|Pf\.? \d)"},
{"ja", u8R"(私書箱\d{1,5}号)"},
{"nl", u8R"((?i)Postbus)"},
{"no", u8R"((?i)Postboks)"},
{"pl", u8R"((?i)Skr(?:\.?|ytka) poczt(?:\.?|owa))"},
{"pt", u8R"((?i)Apartado)"},
{"ru", u8R"((?i)абонентский ящик|[аa]"я (?:(?:№|#|N) ?)?\d)"},
{"sv", u8R"((?i)Box \d)"},
{"und", u8R"(P\.? ?O\.? Box)"},
{"zh", u8R"(郵政信箱.{1,5}號|郵局第.{1,10}號信箱)"},
{"ar", R"(صندوق بريد|ص[-. ]ب)"},
{"cs", R"((?i)p\.? ?p\.? \d)"},
{"da", R"((?i)Postboks)"},
{"de", R"((?i)Postfach)"},
{"el", R"((?i)T\.? ?Θ\.? \d{2})"},
{"en", R"(Private Bag|Post(?:al)? Box)"},
{"es", R"((?i)(?:Apartado|Casillas) de correos?)"},
{"fi", R"((?i)Postilokero|P\.?L\.? \d)"},
{"fr", R"((?i)Bo(?:[iî]|î)te Postale|BP \d|CEDEX \d)"},
{"hr", R"((?i)p\.? ?p\.? \d)"},
{"hu", R"((?i)Postafi(?:[oó]|ó)k|Pf\.? \d)"},
{"ja", R"(私書箱\d{1,5}号)"},
{"nl", R"((?i)Postbus)"},
{"no", R"((?i)Postboks)"},
{"pl", R"((?i)Skr(?:\.?|ytka) poczt(?:\.?|owa))"},
{"pt", R"((?i)Apartado)"},
{"ru", R"((?i)абонентский ящик|[аa]"я (?:(?:№|#|N) ?)?\d)"},
{"sv", R"((?i)Box \d)"},
{"und", R"(P\.? ?O\.? Box)"},
{"zh", R"(郵政信箱.{1,5}號|郵局第.{1,10}號信箱)"},
};

constexpr size_t kLanguageInfoMapSize = size(kLanguageInfoMap);
Expand Down
Loading