java.lang.Object
io.sf.carte.doc.style.css.UnitStringToId
Obtain the numeric unit from the unit string.
 
 The benchmarks used to choose the implementation are available in the
 UnitStringToNumberMark class in the css4j Benchmarks repository.
 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic shortunitFromString(String unit) Retrieves the CSS unit associated to the given unit string.
- 
Constructor Details- 
UnitStringToIdpublic UnitStringToId()
 
- 
- 
Method Details- 
unitFromStringRetrieves the CSS unit associated to the given unit string.- Parameters:
- unit- the lower case unit string.
- Returns:
- the associated CSS unit, or CSS_OTHERif the unit is not known.
 
 
-