// ICU PATCH: Customize header file paths for ICU.
#include"double-conversion-utils.h"
// ICU PATCH: Wrap in ICU namespace
U_NAMESPACE_BEGIN
namespace double_conversion {
// The buffer must only contain digits in the range [0-9]. It must not // contain a dot or a sign. It must not start with '0', and must not be empty. double Strtod(Vector<constchar> buffer, int exponent);
// The buffer must only contain digits in the range [0-9]. It must not // contain a dot or a sign. It must not start with '0', and must not be empty. float Strtof(Vector<constchar> buffer, int exponent);
// Same as Strtod, but assumes that 'trimmed' is already trimmed, as if run // through TrimAndCut. That is, 'trimmed' must have no leading or trailing // zeros, must not be a lone zero, and must not have 'too many' digits. double StrtodTrimmed(Vector<constchar> trimmed, int exponent);
// Same as Strtof, but assumes that 'trimmed' is already trimmed, as if run // through TrimAndCut. That is, 'trimmed' must have no leading or trailing // zeros, must not be a lone zero, and must not have 'too many' digits. float StrtofTrimmed(Vector<constchar> trimmed, int exponent);
inline Vector<constchar> TrimTrailingZeros(Vector<constchar> buffer) { for (int i = buffer.length() - 1; i >= 0; --i) { if (buffer[i] != '0') { return buffer.SubVector(0, i + 1);
}
} return Vector<constchar>(buffer.start(), 0);
}
} // namespace double_conversion
// ICU PATCH: Close ICU namespace
U_NAMESPACE_END
#endif// DOUBLE_CONVERSION_STRTOD_H_ #endif// ICU PATCH: close #if !UCONFIG_NO_FORMATTING
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.