D | ExternalUnitConversionData.java | 22 …// first source is https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conve… 24 public final String source; field in ExternalUnitConversionData 29 …public ExternalUnitConversionData(String quantity, String source, String target, Rational factor, … in ExternalUnitConversionData() argument 35 this.source = extractUnit(quantity, source, sourceChanges); in ExternalUnitConversionData() 36 changes.putAll(source, sourceChanges); in ExternalUnitConversionData() 42 Rational offset = temperatureHack.get(this.source + "|" + this.target); in ExternalUnitConversionData() 63 private String extractUnit(String quantity, String source, Set<String> changes) { in extractUnit() argument 65 source = replace(footnotes, source, "", changes); in extractUnit() 67 if (source.contains("(15 °C)")) { in extractUnit() 70 source = replace(temperature, source, " $1$2$3", changes); in extractUnit() [all …]
|