func parseAndroidMeasurement()

in Cyborg/VectorDrawableParser.swift [411:418]


    func parseAndroidMeasurement(from text: XMLString) -> CGFloat? {
        if case .ok(let number, let index) = number(from: text, at: 0),
            let _ = AndroidUnitOfMeasure(rawValue: String(withoutCopying: text[index..<text.count])) {
            return number
        } else {
            return nil
        }
    }