Lines Matching full:encoding
31 * The encoding of the bundle (e.g. 'en', 'en_US', 'de', etc.)
33 public String encoding; field in Bundle
35 * A descriptor of the language in the encoding (e.g. English, German, etc.)
39 * A descriptor of the country in the encoding (e.g. US, Canada, Great Britain)
43 * The descriptor of the variant in the encoding (e.g. Euro, Irish, etc.)
74 * Constructor for creating an empty bundle with a given encoding
77 public Bundle(String encoding) { in Bundle() argument
78 this.encoding = encoding; in Bundle()
113 * This method returns the language encoding string, or null if it is not specified
117 if (encoding == null) in getLanguageEncoding()
119 if (encoding.indexOf("_") >= 0) in getLanguageEncoding()
120 return encoding.substring(0,encoding.indexOf("_")); in getLanguageEncoding()
121 return encoding.trim(); in getLanguageEncoding()
126 * This method returns the country encoding string, or null if it is not specified
130 if (encoding == null || encoding.indexOf("_") < 0) in getCountryEncoding()
133 String workStr = encoding.substring(encoding.indexOf("_")+1,encoding.length()); in getCountryEncoding()
135 return workStr.substring(0,encoding.indexOf("_")); in getCountryEncoding()
141 * This method returns the variant encoding string, or null if it is not specified
145 if (encoding == null || encoding.indexOf("_") < 0) in getVariantEncoding()
148 String workStr = encoding.substring(encoding.indexOf("_")+1,encoding.length()); in getVariantEncoding()
152 workStr = workStr.substring(encoding.indexOf("_")+1, workStr.length()); in getVariantEncoding()
409 * A method useful in debugging. The string returned displays the encoding
420 retStr += " (" + (encoding == null || encoding.equals("") ? "Base Class" : encoding) + ")"; in toString()
433 if (encoding != null) retStr += "# @fileEncoding " + encoding + "\n"; in toOutputString()