name: LocaleScanner class_comment: '# * Scans a directory with data files for locales. # * # * The name of each file with the extension ".txt" is considered, if it "looks" # * like a locale: # * # * - the name must start with two letters; # * - the two letters may optionally be followed by an underscore and any # * sequence of other symbols. # * # * For example, "de" and "de_DE" are considered to be locales. "root" and "meta" # * are not. # * # * @author Bernhard Schussek # * # * @internal' dependencies: [] properties: [] methods: - name: scanLocales visibility: public parameters: - name: sourceDir comment: '# * Scans a directory with data files for locales. # * # * The name of each file with the extension ".txt" is considered, if it "looks" # * like a locale: # * # * - the name must start with two letters; # * - the two letters may optionally be followed by an underscore and any # * sequence of other symbols. # * # * For example, "de" and "de_DE" are considered to be locales. "root" and "meta" # * are not. # * # * @author Bernhard Schussek # * # * @internal # */ # class LocaleScanner # { # /** # * Returns all locales found in the given directory. # * # * @return array An array of locales. The result also contains locales that # * are in fact just aliases for other locales. Use # * {@link scanAliases()} to determine which of the locales # * are aliases' - name: scanAliases visibility: public parameters: - name: sourceDir comment: '# * Returns all locale aliases found in the given directory. # * # * @return array An array with the locale aliases as keys and the aliased # * locales as values' - name: scanParents visibility: public parameters: - name: sourceDir comment: '# * Returns all locale parents found in the given directory.' traits: [] interfaces: []