Packagecom.adobe.xmp.utils
Classpublic class Utils

Normalization functions for locales and file paths.



Public Methods
 MethodDefined by
  
normalizeFilePath(filePath:String):String
[static] Ensures that the file path is using forward slash separators
Utils
  
normalizeLocale(value:String):String
[static] Normalize a Locale value so that comparisons are effectively case insensitive as required by RFC 3066 (which superceeds RFC 1766).
Utils
  
normalizePath(path:String):String
[static] Ensures that the file path is using forward slash separators AND that it is followed by a slash.
Utils
Method detail
normalizeFilePath()method
public static function normalizeFilePath(filePath:String):String

Ensures that the file path is using forward slash separators

Parameters
filePath:String

Returns
String
normalizeLocale()method 
public static function normalizeLocale(value:String):String

Normalize a Locale value so that comparisons are effectively case insensitive as required by RFC 3066 (which superceeds RFC 1766). The normalization rules:

Note: Underscores are used between the language tags, while XMP uses normally hyphens.

Parameters
value:String — raw value

Returns
String — Returns the normalized value.
normalizePath()method 
public static function normalizePath(path:String):String

Ensures that the file path is using forward slash separators AND that it is followed by a slash.

Parameters
path:String

Returns
String