Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(ci?: CultureInfo) {
if (!ci) {
ci = new CultureInfo(Culture.Chinese);
}
super(ci);
this.extractType = Constants.SYS_UNIT_TEMPERATURE;
this.suffixList = ChineseNumericWithUnit.TemperatureSuffixList;
this.prefixList = ChineseNumericWithUnit.TemperaturePrefixList;
this.ambiguousUnitList = ChineseNumericWithUnit.TemperatureAmbiguousValues;
this.ambiguousUnitNumberMultiplierRegex = RegExpUtility.getSafeRegExp(BaseUnits.AmbiguousUnitNumberMultiplierRegex, "gs");
}
}
constructor(ci?: CultureInfo) {
if (!ci) {
ci = new CultureInfo(Culture.Portuguese);
}
super(ci);
this.extractType = Constants.SYS_UNIT_TEMPERATURE;
this.suffixList = PortugueseNumericWithUnit.TemperatureSuffixList;
this.prefixList = new Map();
this.ambiguousUnitList = new Array();
this.ambiguousUnitNumberMultiplierRegex = RegExpUtility.getSafeRegExp(BaseUnits.AmbiguousUnitNumberMultiplierRegex, "gs");
}
}
constructor(ci?: CultureInfo) {
if (!ci) {
ci = new CultureInfo(Culture.French);
}
super(ci);
this.extractType = Constants.SYS_UNIT_TEMPERATURE;
this.suffixList = FrenchNumericWithUnit.TemperatureSuffixList;
this.prefixList = new Map();
this.ambiguousUnitList = new Array();
this.ambiguousUnitNumberMultiplierRegex = RegExpUtility.getSafeRegExp(BaseUnits.AmbiguousUnitNumberMultiplierRegex, "gs");
}
}
constructor(ci?: CultureInfo) {
if (!ci) {
ci = new CultureInfo(Culture.Spanish);
}
super(ci);
this.extractType = Constants.SYS_UNIT_TEMPERATURE;
this.suffixList = SpanishNumericWithUnit.TemperatureSuffixList;
this.prefixList = new Map();
this.ambiguousUnitList = new Array();
this.ambiguousUnitNumberMultiplierRegex = RegExpUtility.getSafeRegExp(BaseUnits.AmbiguousUnitNumberMultiplierRegex, "gs");
}
}
constructor(ci?: CultureInfo) {
if (!ci) {
ci = new CultureInfo(Culture.English);
}
super(ci);
this.extractType = Constants.SYS_UNIT_TEMPERATURE;
this.suffixList = EnglishNumericWithUnit.TemperatureSuffixList;
this.prefixList = new Map();
this.ambiguousUnitList = EnglishNumericWithUnit.AmbiguousTemperatureUnitList;
this.ambiguousUnitNumberMultiplierRegex = RegExpUtility.getSafeRegExp(BaseUnits.AmbiguousUnitNumberMultiplierRegex, "gs");
}
}