public static String getFullName ( String baseName , String localeName ) { if ( baseName == null || baseName . length ( ) == 0 ) { if ( localeName . length ( ) == 0 ) { return localeName = ULocale . getDefault ( ) . toString ( ) ; } return localeName + ICU_RESOURCE_SUFFIX ; } else { if ( baseName . indexOf ( ' ' ) == - 1 ) { if ( baseName . charAt ( baseName . length ( ) - 1 ) != ' ' ) { return baseName + "/" + localeName + ICU_RESOURCE_SUFFIX ; } else { return baseName + localeName + ICU_RESOURCE_SUFFIX ; } } else { baseName = baseName . replace ( ' ' , ' ' ) ; if ( localeName . length ( ) == 0 ) { return baseName + ICU_RESOURCE_SUFFIX ; } else { return baseName + "_" + localeName + ICU_RESOURCE_SUFFIX ; } } } }
Gets the full name of the resource with suffix .