summaryrefslogtreecommitdiff
path: root/tools/aapt2/ConfigDescription.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aapt2/ConfigDescription.h')
-rw-r--r--tools/aapt2/ConfigDescription.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/ConfigDescription.h b/tools/aapt2/ConfigDescription.h
index 65c96175091c..f71955247d78 100644
--- a/tools/aapt2/ConfigDescription.h
+++ b/tools/aapt2/ConfigDescription.h
@@ -61,6 +61,11 @@ struct ConfigDescription : public android::ResTable_config {
ConfigDescription CopyWithoutSdkVersion() const;
+ // Returns the BCP-47 language tag of this configuration's locale.
+ std::string GetBcp47LanguageTag(bool canonicalize = false) const;
+
+ std::string to_string() const;
+
/**
* A configuration X dominates another configuration Y, if X has at least the
* precedence of Y and X is strictly more general than Y: for any type defined