All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.adf.jsLibs.Locale.js Maven / Gradle / Ivy

The newest version!
function _createFacesMessage(
a0,
a1,
a2,
a3,
a4
)
{
var a5=TrMessageFactory.getSummaryString(a0);
var a6=TrMessageFactory.getDetailString(a0);
if(a6!=null)
{
a6=TrFastMessageFormatUtils.format(a6,a1,a2,a3,a4);
}
return new TrFacesMessage(a5,
a6,
TrFacesMessage.SEVERITY_ERROR);
}
function _createCustomFacesMessage(
a0,
a1,
a2,
a3,
a4,
a5
)
{
if(a1!=null)
{
a1=TrFastMessageFormatUtils.format(a1,a2,a3,a4,a5);
}
return new TrFacesMessage(a0,
a1,
TrFacesMessage.SEVERITY_ERROR);
}
var TrFormatUtils=new Object();
TrFormatUtils.trim=function(
a6)
{
if(a6!=null&&(typeof a6)=='string')
return a6.replace(TrFormatUtils._TRIM_ALL_RE,'');
return a6;
}
TrFormatUtils._TRIM_ALL_RE=/^\s*|\s*$/g;
TrFormatUtils.isNumberConvertible=function(a7)
{
if(a7!=null)
{
var a8=0;
for(var a9=0;a947&&a10<58)
{
a8++;
}
}
if(a8>15)
return false;
}
return true;
}
var _digits;
var _decimalSep;
var _groupingSep;
function isDigit(
a0
)
{
return(_getDigits()[a0]!=null);
}
function _getDigits()
{
if(_digits==null)
{
var a0=[
0x0030,
0x0660,
0x06F0,
0x0966,
0x09E6,
0x0A66,
0x0AE6,
0x0B66,
0x0BE7,
0x0C66,
0x0CE6,
0x0D66,
0x0E50,
0x0ED0,
0x0F20,
0xFF10
];
_digits=new Object();
for(var a1=0;a10xFF)
{
return true;
}
else
{
return!_isLowerCaseStrict(alphaChar);
}
}
function isLowerCase(
a0
)
{
var a1=a0.charCodeAt(0);
if(a1>0xFF)
{
return!isDigit(a0);
}
else
{
return _isLowerCaseStrict(a0);
}
}
function _isLowerCaseStrict(
a0
)
{
var a1=a0.charCodeAt(0);
return(((a1>=0x61)&&(a1<=0x7A))||
((a1>=0xDF)&&(a1<=0xFF)));
}
function isUpperCase(
a0
)
{
var a1=a0.charCodeAt(0);
if(a1>0xFF)
{
return!isDigit(a0);
}
else
{
return _isUpperCaseStrict(a0);
}
}
function isNotUpperCase(
a0
)
{
var a1=a0.charCodeAt(0);
if(a1>0xFF)
{
return true;
}
else
{
return!_isUpperCaseStrict(a0);
}
}
function _isUpperCaseStrict(
a0
)
{
var a1=a0.charCodeAt(0);
return(((a1>=0x41)&&(a1<=0x5A))||
((a1>=0xC0)&&(a1<=0xDe)));
}
function isLetter(
a0
)
{
return isLowerCase(a0)|isUpperCase(a0);
}
function getUserLanguage()
{
var a0=_locale;
if(a0==null)
{
a0=window.navigator.userLanguage;
if(a0==null)
{
a0=window.navigator.language;
}
}
return a0;
}
function getJavaLanguage(
a0
)
{
if(a0==null)
{
a0=getUserLanguage();
}
var a1=a0.indexOf("-",0);
if(a1==-1)
return a0;
var a2=a0.length;
var a3=a0.substring(0,a1);
a3+="_";
a1++;
var a4=a0.indexOf("-",a1);
if(a4==-1)
{
a4=a2;
}
var a5=a0.substring(a1,
a4);
a3+=a5.toUpperCase();
if(a4!=a2)
{
a3+="_";
a3+=a0.substring(a4+1,
a2);
}
return a3;
}
function getLocaleSymbols(
a0
)
{
var a1=getJavaLanguage(a0);
while(true)
{
var a2=window["LocaleSymbols_"+a1];
if(a2!=null)
{
return a2;
}
else
{
var a3=a1.lastIndexOf("_");
if(a3!=-1)
{
a1=a1.substring(0,a3);
}
else
{
break;
}
}
}
}
function _getEras()
{
return this.getLocaleElements()["Eras"];
}
function _getMonths()
{
return this.getLocaleElements()["MonthNames"];
}
function _getShortMonths()
{
return this.getLocaleElements()["MonthAbbreviations"];
}
function _getWeekdays()
{
return this.getLocaleElements()["DayNames"];
}
function _getShortWeekdays()
{
return this.getLocaleElements()["DayAbbreviations"];
}
function _getAmPmStrings()
{
return this.getLocaleElements()["AmPmMarkers"];
}
function _getZoneStrings()
{
return this.getLocaleElements()["zoneStrings"];
}
function _getLocalPatternChars()
{
return this.getLocaleElements()["localPatternChars"];
}
function _getDecimalSeparator()
{
if(_decimalSep!=null)
return _decimalSep;
return this.getLocaleElements()["NumberElements"][0];
}
function _getGroupingSeparator()
{
if(_groupingSep!=null)
return _groupingSep;
return this.getLocaleElements()["NumberElements"][1];
}
function _getPatternSeparator()
{
return this.getLocaleElements()["NumberElements"][2];
}
function _getPercent()
{
return this.getLocaleElements()["NumberElements"][3];
}
function _getPercentSuffix()
{
return this.getLocaleElements()["PercentElements"][0];
}
function _getZeroDigit()
{
return this.getLocaleElements()["NumberElements"][4];
}
function _getDigit()
{
return this.getLocaleElements()["NumberElements"][5];
}
function _getMinusSign()
{
return this.getLocaleElements()["NumberElements"][6];
}
function _getExponential()
{
return this.getLocaleElements()["NumberElements"][7];
}
function _getPerMill()
{
return this.getLocaleElements()["NumberElements"][8];
}
function _getInfinity()
{
return this.getLocaleElements()["NumberElements"][9];
}
function _getNaN()
{
return this.getLocaleElements()["NumberElements"][10];
}
function _getCurrencySymbol()
{
return this.getLocaleElements()["CurrencyElements"][0];
}
function _getCurrencyCode()
{
return this.getLocaleElements()["CurrencyElements"][1];
}
function _getPositivePrefix()
{
return this.getLocaleElements()["CurrencyElements"][2];
}
function _getPositiveSuffix()
{
return this.getLocaleElements()["CurrencyElements"][3];
}
function _getNegativePrefix()
{
return this.getLocaleElements()["CurrencyElements"][4];
}
function _getNegativeSuffix()
{
return this.getLocaleElements()["CurrencyElements"][5];
}
function _getLocaleElements()
{
return this["LocaleElements"];
}
function _getFullTimePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][0];
}
function _getLongTimePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][1];
}
function _getMediumTimePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][2];
}
function _getShortTimePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][3];
}
function _getFullDatePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][4];
}
function _getLongDatePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][5];
}
function _getMediumDatePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][6];
}
function _getShortDatePatternString()
{
return this.getLocaleElements()["DateTimePatterns"][7];
}
function _getDateTimeFormatString()
{
return this.getLocaleElements()["DateTimePatterns"][8];
}
function LocaleSymbols(
a0
)
{
this["LocaleElements"]=a0;
}
LocaleSymbols.prototype.getFullTimePatternString=_getFullTimePatternString;
LocaleSymbols.prototype.getLongTimePatternString=_getLongTimePatternString;
LocaleSymbols.prototype.getMediumTimePatternString=_getMediumTimePatternString;
LocaleSymbols.prototype.getShortTimePatternString=_getShortTimePatternString;
LocaleSymbols.prototype.getFullDatePatternString=_getFullDatePatternString;
LocaleSymbols.prototype.getLongDatePatternString=_getLongDatePatternString;
LocaleSymbols.prototype.getMediumDatePatternString=_getMediumDatePatternString;
LocaleSymbols.prototype.getShortDatePatternString=_getShortDatePatternString;
LocaleSymbols.prototype.getDateTimeFormatString=_getDateTimeFormatString;
LocaleSymbols.prototype.getEras=_getEras;
LocaleSymbols.prototype.getMonths=_getMonths;
LocaleSymbols.prototype.getShortMonths=_getShortMonths;
LocaleSymbols.prototype.getWeekdays=_getWeekdays;
LocaleSymbols.prototype.getShortWeekdays=_getShortWeekdays;
LocaleSymbols.prototype.getAmPmStrings=_getAmPmStrings;
LocaleSymbols.prototype.getZoneStrings=_getZoneStrings;
LocaleSymbols.prototype.getLocalPatternChars=_getLocalPatternChars;
LocaleSymbols.prototype.getDecimalSeparator=_getDecimalSeparator;
LocaleSymbols.prototype.getGroupingSeparator=_getGroupingSeparator;
LocaleSymbols.prototype.getPatternSeparator=_getPatternSeparator;
LocaleSymbols.prototype.getPercent=_getPercent;
LocaleSymbols.prototype.getPercentSuffix=_getPercentSuffix;
LocaleSymbols.prototype.getZeroDigit=_getZeroDigit;
LocaleSymbols.prototype.getDigit=_getDigit;
LocaleSymbols.prototype.getMinusSign=_getMinusSign;
LocaleSymbols.prototype.getExponential=_getExponential;
LocaleSymbols.prototype.getPerMill=_getPerMill;
LocaleSymbols.prototype.getInfinity=_getInfinity;
LocaleSymbols.prototype.getNaN=_getNaN;
LocaleSymbols.prototype.getCurrencySymbol=_getCurrencySymbol;
LocaleSymbols.prototype.getCurrencyCode=_getCurrencyCode;
LocaleSymbols.prototype.getPositivePrefix=_getPositivePrefix;
LocaleSymbols.prototype.getPositiveSuffix=_getPositiveSuffix;
LocaleSymbols.prototype.getNegativePrefix=_getNegativePrefix;
LocaleSymbols.prototype.getNegativeSuffix=_getNegativeSuffix;
LocaleSymbols.prototype.getLocaleElements=_getLocaleElements;
function TrConverterHint()
{
this._class="TrConverterHint";
}
TrConverterHint.prototype.getFormatHint=function(){}
function TrValidatorHint()
{
this._class="TrValidatorHint";
}
TrConverterHint.prototype.getHints=function(a0){}
function TrConverter()
{
this._class="TrConverter";
}
TrConverter.prototype.getAsString=function(a0,a1){}
TrConverter.prototype.getAsObject=function(a2,a3){}
function TrValidator()
{
this._class="TrValidator";
}
TrValidator.prototype.validate=function(a0,a1,a2){}
function TrConverterException(
a0,
a1,
a2
)
{
if(a0==null)
{
this._facesMessage=new TrFacesMessage(a1,
a2,
TrFacesMessage.SEVERITY_ERROR);
}
else
{
this._facesMessage=a0;
}
}
TrConverterException.prototype.getFacesMessage=
function()
{
return this._facesMessage;
}
function TrValidatorException(
a0,
a1,
a2
)
{
if(a0==null)
{
this._facesMessage=new TrFacesMessage(a1,
a2,
TrFacesMessage.SEVERITY_ERROR);
}
else
{
this._facesMessage=a0;
}
}
TrValidatorException.prototype.getFacesMessage=
function()
{
return this._facesMessage;
}
function TrFacesMessage(
a0,
a1,
a2
)
{
this._summary=a0;
this._detail=a1;
if(a2==null)
{
this._severity=TrFacesMessage.SEVERITY_INFO;
}
else
{
this._severity=a2;
}
}
TrFacesMessage.SEVERITY_INFO=0;
TrFacesMessage.SEVERITY_WARN=1;
TrFacesMessage.SEVERITY_ERROR=2;
TrFacesMessage.SEVERITY_FATAL=3;
TrFacesMessage._SEVERITY_DEFAULT=TrFacesMessage.SEVERITY_INFO;
TrFacesMessage.prototype.getDetail=
function()
{
return this._detail;
}
TrFacesMessage.prototype.getSummary=
function()
{
return this._summary;
}
TrFacesMessage.prototype.setDetail=
function(
a3
)
{
this._detail=a3;
}
TrFacesMessage.prototype.setSummary=
function(
a4
)
{
this._summary=a4;
}
TrFacesMessage.prototype.getSeverity=
function()
{
return this._severity;
}
TrFacesMessage.prototype.setSeverity=
function(
a5
)
{
this._severity=a5;
}
var TrFastMessageFormatUtils=new Object();
TrFastMessageFormatUtils.format=function(
a6,
a7
)
{
var a8=a6.length;
var a9=arguments.length-1;
var a10=[];
var a11=0;
for(var a12=0;a12=0&&a14




© 2015 - 2024 Weber Informatics LLC | Privacy Policy