code: @Nullable
    public static CSSSimpleValueWithUnit getValueWithUnit (@Nullable final String sCSSValue, final boolean bWithPerc)
    {
      String sRealValue = StringHelper.trim (sCSSValue);
      if (StringHelper.hasText (sRealValue))
      {
        // Special case for 0!
        if (sRealValue.equals ("0"))
          return new CSSSimpleValueWithUnit (BigDecimal.ZERO, ECSSUnit.PX);
  
        final ECSSUnit eUnit = bWithPerc ? getMatchingUnitInclPercentage (sRealValue)
                                         : getMatchingUnitExclPercentage (sRealValue);
        if (eUnit != null)
        {
          // Cut the unit off
          sRealValue = sRealValue.substring (0, sRealValue.length () - eUnit.getName ().length ()).trim ();
          final BigDecimal aValue = StringParser.parseBigDecimal (sRealValue);
          if (aValue != null)
            return new CSSSimpleValueWithUnit (aValue, eUnit);
        }
      }
      return null;
    }
docs: Convert the passed string value with unit into a structured
  {@link CSSSimpleValueWithUnit}. Example: parsing <code>5px</code> will
  result in the numeric value <code>5</code> and the unit
  <code>ECSSUnit.PX</code>. The special value "0" is returned with the unit
  "px".
  
  @param sCSSValue
  The value to be parsed. May be <code>null</code> and is trimmed
  inside this method.
  @param bWithPerc
  <code>true</code> to include the percentage unit, <code>false</code>
  to exclude the percentage unit.
  @return <code>null</code> if the passed value could not be converted to
  value and unit.