#include <opennurbs_parse.h>
Public Types | |
enum | { max_number_str_count = 2000, max_expression_str_count = 2147483645 } |
Public Member Functions | |
ON_ParseSettings () | |
The default constuctor uses the default settings. More... | |
ON_ParseSettings (const class ON_UnitSystem &context_length_unit_system, ON::AngleUnitSystem context_angle_unit_system, unsigned int context_locale_id) | |
Default settings constructor sets the context information. More... | |
ON_ParseSettings (ON::LengthUnitSystem context_length_unit_system, ON::AngleUnitSystem context_angle_unit_system, unsigned int context_locale_id) | |
ON::AngleUnitSystem | ContextAngleUnitSystem () const |
ON::LengthUnitSystem | ContextLengthUnitSystem () const |
unsigned int | ContextLocaleId () const |
ON::AngleUnitSystem | DefaultAngleUnitSystem () const |
Deprecated. Use ContextAngleUnitSystem(). More... | |
bool | IsAdditionSymbol (ON__UINT32 c) const |
bool | IsDecimalExponentSymbol (ON__UINT32 c) const |
bool | IsDecimalPoint (ON__UINT32 c) const |
char | IsDigit (ON__UINT32 c) const |
bool | IsDigitSeparator (ON__UINT32 c) const |
bool | IsDivisionSymbol (ON__UINT32 c) const |
bool | IsGreekPi (ON__UINT32 c) const |
bool | IsInteriorWhiteSpace (ON__UINT32 c) const |
bool | IsLeadingWhiteSpace (ON__UINT32 c) const |
bool | IsLeftParenthesisSymbol (ON__UINT32 c) const |
bool | IsMultiplicationSymbol (ON__UINT32 c) const |
bool | IsNumberDash (ON__UINT32 c) const |
bool | IsRationalNumberFractionBar (ON__UINT32 c) const |
bool | IsRightParenthesisSymbol (ON__UINT32 c) const |
bool | IsSubtractionSymbol (ON__UINT32 c) const |
bool | IsTrailingWhiteSpace (ON__UINT32 c) const |
bool | IsUnaryMinus (ON__UINT32 c) const |
bool | IsUnaryPlus (ON__UINT32 c) const |
ON_ParseSettings & | operator &= (const ON_ParseSettings &other) |
ON_ParseSettings & | operator|= (const ON_ParseSettings &other) |
bool | ParseAddition () const |
bool | ParseArcDegreesMinutesSeconds () const |
bool | ParseArithmeticExpression () const |
bool | ParseCarriageReturnAsLeadingWhiteSpace () const |
bool | ParseCarriageReturnAsTrailingWhiteSpace () const |
bool | ParseCommaAsDecimalPoint () const |
bool | ParseCommaAsDigitSeparator () const |
bool | ParseDAsExponentInScientificENotation () const |
bool | ParseDivideByZeroError () const |
bool | ParseDivision () const |
bool | ParseError () const |
bool | ParseExplicitFormulaExpression () const |
bool | ParseFeetInches () const |
bool | ParseFormFeedAsLeadingWhiteSpace () const |
bool | ParseFormFeedAsTrailingWhiteSpace () const |
bool | ParseFullStopAsDecimalPoint () const |
bool | ParseFullStopAsDigitSeparator () const |
bool | ParseHorizontalTabAsWhiteSpace () const |
bool | ParseHyphenAsNumberDash () const |
bool | ParseHyphenMinusAsNumberDash () const |
bool | ParseIntegerDashFraction () const |
bool | ParseInvalidExpressionError () const |
bool | ParseLeadingWhiteSpace () const |
bool | ParseLineFeedAsLeadingWhiteSpace () const |
bool | ParseLineFeedAsTrailingWhiteSpace () const |
bool | ParseMathFunctions () const |
bool | ParseMultiplication () const |
bool | ParseNoBreakHyphenAsNumberDash () const |
bool | ParseNoBreakSpaceAsDigitSeparator () const |
bool | ParseNoBreakSpaceAsWhiteSpace () const |
bool | ParseNoBreakThinSpaceAsDigitSeparator () const |
bool | ParseNoBreakThinSpaceAsWhiteSpace () const |
bool | ParseOverflowError () const |
bool | ParsePairedParentheses () const |
bool | ParsePi () const |
bool | ParseRationalNumber () const |
bool | ParseScientificENotation () const |
bool | ParseSignificandDecimalPoint () const |
bool | ParseSignificandDigitSeparators () const |
bool | ParseSignificandFractionalPart () const |
bool | ParseSignificandIntegerPart () const |
bool | ParseSpaceAsDigitSeparator () const |
bool | ParseSpaceAsWhiteSpace () const |
bool | ParseSubtraction () const |
bool | ParseSurveyorsNotation () const |
bool | ParseThinSpaceAsDigitSeparator () const |
bool | ParseThinSpaceAsWhiteSpace () const |
bool | ParseUnaryMinus () const |
bool | ParseUnaryPlus () const |
bool | ParseVerticalTabAsLeadingWhiteSpace () const |
bool | ParseVerticalTabAsTrailingWhiteSpace () const |
bool | ParseWhiteSpaceBetweenFeetAndInches () const |
bool | ParseWhiteSpaceBetweenValueAndUnitSystem () const |
unsigned int | PreferedLocaleId () const |
Deprecated. Use ContextLocaleId(). More... | |
void | SetAllExpressionSettingsToFalse () |
Set every possible expression parsing setting to false. More... | |
void | SetAllToFalse () |
Set every possible setting to false or zero. More... | |
void | SetContextAngleUnitSystem (ON::AngleUnitSystem context_angle_unit_system) |
The context angle unit system determines what angle unit system is used when a value must be parsed as an angle and no angle unit system is explicitly or implicitly specified. The default is ON::LengthUnitSystem::Radians. More... | |
void | SetContextLengthUnitSystem (ON::LengthUnitSystem context_length_unit_system) |
The context angle unit system determines what length unit system is used when a value must be parsed as a length with units and no length unit system is explicitly or implicitly specified. The default is ON::LengthUnitSystem::None. More... | |
void | SetContextLocaleId (unsigned int context_locale_id) |
Set the prefered locale id for parsing unit names. This local id is used to resolve ambiguous unit names. More... | |
void | SetDefaultAngleUnitSystem (ON::AngleUnitSystem context_angle_unit_system) |
Deprecated. Use SetContextAngleUnitSystem(). More... | |
void | SetParseAddition (bool bParseAddition) |
void | SetParseArcDegreesMinutesSeconds (bool bParseArcDegreesMinutesSeconds) |
void | SetParseArithmeticExpression (bool bParseArithmeticExpression) |
void | SetParseCarriageReturnAsLeadingWhiteSpace (bool bParseCarriageReturnAsLeadingWhiteSpace) |
void | SetParseCarriageReturnAsTrailingWhiteSpace (bool bParseParseCarriageReturnAsTrailingWhiteSpace) |
void | SetParseCommaAsDecimalPoint (bool bParse) |
void | SetParseCommaAsDigitSeparator (bool bParse) |
void | SetParseDAsExponentInScientificENotation (bool bParseDAsExponentInScientificENotation) |
void | SetParseDecimalPoint (bool bParseDecimalPoint) |
void | SetParseDivideByZeroError (bool bParseDivideByZeroError) |
void | SetParseDivision (bool bParseDivision) |
void | SetParseExplicitFormulaExpression (bool bParseExplicitFormulaExpression) |
void | SetParseFeetInches (bool bParseFeetInches) |
void | SetParseFormFeedAsLeadingWhiteSpace (bool bParseFormFeedAsLeadingWhiteSpace) |
void | SetParseFormFeedAsTrailingWhiteSpace (bool bParseParseFormFeedAsTrailingWhiteSpace) |
void | SetParseFullStopAsDecimalPoint (bool bParse) |
void | SetParseFullStopAsDigitSeparator (bool bParse) |
void | SetParseHorizontalTabAsWhiteSpace (bool bParseHorizontalTabAsWhiteSpace) |
void | SetParseHyphenAsNumberDash (bool bParse) |
void | SetParseHyphenMinusAsNumberDash (bool bParse) |
void | SetParseIntegerDashFraction (bool bParseIntegerDashFraction) |
void | SetParseInvalidExpressionError (bool bParseInvalidExpressionError) |
void | SetParseLeadingWhiteSpace (bool bParseLeadingWhiteSpace) |
void | SetParseLineFeedAsLeadingWhiteSpace (bool bParseLineFeedAsLeadingWhiteSpace) |
void | SetParseLineFeedAsTrailingWhiteSpace (bool bParseLineFeedAsTrailingWhiteSpacee) |
void | SetParseMathFunctions (bool bParseMathFunctions) |
void | SetParseMultiplication (bool bParseMultiplication) |
void | SetParseNoBreakHyphenAsNumberDash (bool bParse) |
void | SetParseNoBreakSpaceAsDigitSeparator (bool bParse) |
void | SetParseNoBreakSpaceAsWhiteSpace (bool bParseNoBreakSpaceAsWhiteSpace) |
void | SetParseNoBreakThinSpaceAsDigitSeparator (bool bParse) |
void | SetParseNoBreakThinSpaceAsWhiteSpace (bool bParseNoBreakThinSpaceAsWhiteSpace) |
void | SetParseOverflowError (bool bParseOverflowError) |
void | SetParsePairedParentheses (bool bParsePairedParentheses) |
void | SetParsePi (bool bParsePi) |
void | SetParseRationalNumber (bool bParseRationalNumber) |
void | SetParseScientificENotation (bool bParseScientificENotation) |
void | SetParseSignificandDecimalPoint (bool bParseSignificandDecimalPoint) |
void | SetParseSignificandDigitSeparators (bool bParseSignificandDigitSeparators) |
void | SetParseSignificandFractionalPart (bool bParseSignificandFractionalPart) |
void | SetParseSignificandIntegerPart (bool bParseSignificandIntegerPart) |
void | SetParseSpaceAsDigitSeparator (bool bParse) |
void | SetParseSpaceAsWhiteSpace (bool bParseSpaceAsWhiteSpace) |
void | SetParseSubtraction (bool bParseSubtraction) |
void | SetParseSurveyorsNotation (bool bParseSurveyorsNotation) |
void | SetParseThinSpaceAsDigitSeparator (bool bParse) |
void | SetParseThinSpaceAsWhiteSpace (bool bParseThinSpaceAsWhiteSpace) |
void | SetParseUnaryMinus (bool bParseUnaryMinus) |
void | SetParseUnaryPlus (bool bParseUnaryPlus) |
void | SetParseVerticalTabAsLeadingWhiteSpace (bool bParseVerticalTabAsLeadingWhiteSpace) |
void | SetParseVerticalTabAsTrailingWhiteSpace (bool bParseParseVerticalTabAsTrailingWhiteSpace) |
void | SetParseWhiteSpaceBetweenFeetAndInches (bool bParseWhiteSpaceBetweenFeetAndInches) |
void | SetParseWhiteSpaceBetweenValueAndUnitSystem (bool bParseWhiteSpaceBetweenValueAndUnitSystem) |
void | SetPreferedLocaleId (unsigned int context_locale_id) |
Deprecated. Use SetConextLocaleId(). More... | |
Static Public Member Functions | |
static const int | Compare (const ON_ParseSettings *a, const ON_ParseSettings *b) |
Static Public Attributes | |
static const ON_ParseSettings | DefaultSettings |
static const ON_ParseSettings | DefaultSettingsInDegrees |
static const ON_ParseSettings | DefaultSettingsInRadians |
static const ON_ParseSettings | DoubleNumberSettings |
The double number settings parse and optional unary + or unary - and then parse a number that can be integer, decimal, or scientific e notation. More... | |
static const ON_ParseSettings | FalseSettings |
ON_ParseSetting::FalseSettings has all parsing options set to false. More... | |
static const ON_ParseSettings | IntegerNumberSettings |
The integer settings parse and optional unary + or unary - and then parses one or more digits. Parsing stops after the last digit. More... | |
static const ON_ParseSettings | RationalNumberSettings |
The rational number settings parse and optional unary + or unary - and then parse one or more digits. If a rational number fraction bar follows the last digit in the numerator, then it is parsed and an integer denominator is parsed. The denominator cannot have a unary + or - preceding the digits. Parsing stops after the last digit in the denominator. More... | |
static const ON_ParseSettings | RealNumberSettings |
The real number settings parse and optional unary + or unary - and then parse a number that can be integer, decimal, scientific e notation or pi. More... | |
anonymous enum |
ON_ParseSettings::ON_ParseSettings | ( | ) |
The default constuctor uses the default settings.
ON_ParseSettings::ON_ParseSettings | ( | const class ON_UnitSystem & | context_length_unit_system, |
ON::AngleUnitSystem | context_angle_unit_system, | ||
unsigned int | context_locale_id | ||
) |
Default settings constructor sets the context information.
ON_ParseSettings::ON_ParseSettings | ( | ON::LengthUnitSystem | context_length_unit_system, |
ON::AngleUnitSystem | context_angle_unit_system, | ||
unsigned int | context_locale_id | ||
) |
|
static |
ON::AngleUnitSystem ON_ParseSettings::ContextAngleUnitSystem | ( | ) | const |
ON::LengthUnitSystem ON_ParseSettings::ContextLengthUnitSystem | ( | ) | const |
unsigned int ON_ParseSettings::ContextLocaleId | ( | ) | const |
ON::AngleUnitSystem ON_ParseSettings::DefaultAngleUnitSystem | ( | ) | const |
Deprecated. Use ContextAngleUnitSystem().
ON_DEPRECTATED
bool ON_ParseSettings::IsAdditionSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsDecimalExponentSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsDecimalPoint | ( | ON__UINT32 | c | ) | const |
c | [in] |
char ON_ParseSettings::IsDigit | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsDigitSeparator | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsDivisionSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsGreekPi | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsInteriorWhiteSpace | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsLeadingWhiteSpace | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsLeftParenthesisSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsMultiplicationSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsNumberDash | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsRationalNumberFractionBar | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsRightParenthesisSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsSubtractionSymbol | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsTrailingWhiteSpace | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsUnaryMinus | ( | ON__UINT32 | c | ) | const |
c | [in] |
bool ON_ParseSettings::IsUnaryPlus | ( | ON__UINT32 | c | ) | const |
c | [in] |
ON_ParseSettings& ON_ParseSettings::operator&= | ( | const ON_ParseSettings & | other | ) |
ON_ParseSettings& ON_ParseSettings::operator|= | ( | const ON_ParseSettings & | other | ) |
bool ON_ParseSettings::ParseAddition | ( | ) | const |
bool ON_ParseSettings::ParseArcDegreesMinutesSeconds | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseArithmeticExpression | ( | ) | const |
bool ON_ParseSettings::ParseCarriageReturnAsLeadingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseCarriageReturnAsTrailingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseCommaAsDecimalPoint | ( | ) | const |
bool ON_ParseSettings::ParseCommaAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseDAsExponentInScientificENotation | ( | ) | const |
bool ON_ParseSettings::ParseDivideByZeroError | ( | ) | const |
bool ON_ParseSettings::ParseDivision | ( | ) | const |
bool ON_ParseSettings::ParseError | ( | ) | const |
bool ON_ParseSettings::ParseExplicitFormulaExpression | ( | ) | const |
bool ON_ParseSettings::ParseFeetInches | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseFormFeedAsLeadingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseFormFeedAsTrailingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseFullStopAsDecimalPoint | ( | ) | const |
bool ON_ParseSettings::ParseFullStopAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseHorizontalTabAsWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseHyphenAsNumberDash | ( | ) | const |
bool ON_ParseSettings::ParseHyphenMinusAsNumberDash | ( | ) | const |
bool ON_ParseSettings::ParseIntegerDashFraction | ( | ) | const |
bool ON_ParseSettings::ParseInvalidExpressionError | ( | ) | const |
bool ON_ParseSettings::ParseLeadingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseLineFeedAsLeadingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseLineFeedAsTrailingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseMathFunctions | ( | ) | const |
bool ON_ParseSettings::ParseMultiplication | ( | ) | const |
bool ON_ParseSettings::ParseNoBreakHyphenAsNumberDash | ( | ) | const |
bool ON_ParseSettings::ParseNoBreakSpaceAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseNoBreakSpaceAsWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseNoBreakThinSpaceAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseNoBreakThinSpaceAsWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseOverflowError | ( | ) | const |
bool ON_ParseSettings::ParsePairedParentheses | ( | ) | const |
bool ON_ParseSettings::ParsePi | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseRationalNumber | ( | ) | const |
bool ON_ParseSettings::ParseScientificENotation | ( | ) | const |
bool ON_ParseSettings::ParseSignificandDecimalPoint | ( | ) | const |
The default is true.
bool ON_ParseSettings::ParseSignificandDigitSeparators | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseSignificandFractionalPart | ( | ) | const |
The default is true.
bool ON_ParseSettings::ParseSignificandIntegerPart | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseSpaceAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseSpaceAsWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseSubtraction | ( | ) | const |
bool ON_ParseSettings::ParseSurveyorsNotation | ( | ) | const |
The first character must be N, n, S or s. The angle must be a spcified as a combination of arc degrees, arc minutes and arc seconds. The last character must be E, e, W or w.
bool ON_ParseSettings::ParseThinSpaceAsDigitSeparator | ( | ) | const |
bool ON_ParseSettings::ParseThinSpaceAsWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseUnaryMinus | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseUnaryPlus | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseVerticalTabAsLeadingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseVerticalTabAsTrailingWhiteSpace | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseWhiteSpaceBetweenFeetAndInches | ( | ) | const |
The default value is true.
bool ON_ParseSettings::ParseWhiteSpaceBetweenValueAndUnitSystem | ( | ) | const |
The default value is true.
unsigned int ON_ParseSettings::PreferedLocaleId | ( | ) | const |
Deprecated. Use ContextLocaleId().
ON_DEPRECTATED
void ON_ParseSettings::SetAllExpressionSettingsToFalse | ( | ) |
Set every possible expression parsing setting to false.
This is a simple way to disable all possible parsing of expressions. This function calls this->SetParseExplicitFormulaExpression(false); this->SetParseArithmeticExpression(false); this->SetParseMultiplication(false); this->SetParseDivision(false); this->SetParseAddition(false); this->SetParseSubtraction(false); this->SetParseMathFunctions(false); this->SetParseMathFunctions(false); this->SetParsePairedParentheses(false);
void ON_ParseSettings::SetAllToFalse | ( | ) |
Set every possible setting to false or zero.
void ON_ParseSettings::SetContextAngleUnitSystem | ( | ON::AngleUnitSystem | context_angle_unit_system | ) |
The context angle unit system determines what angle unit system is used when a value must be parsed as an angle and no angle unit system is explicitly or implicitly specified. The default is ON::LengthUnitSystem::Radians.
default_angle_unit_system | [in] ON::AngleUnitSystem::None and ON::AngleUnitSystem::Unset select ON::LengthUnitSystem::Radians. |
void ON_ParseSettings::SetContextLengthUnitSystem | ( | ON::LengthUnitSystem | context_length_unit_system | ) |
The context angle unit system determines what length unit system is used when a value must be parsed as a length with units and no length unit system is explicitly or implicitly specified. The default is ON::LengthUnitSystem::None.
context_length_unit_system | [in] ON::LengthUnitSystem::Custom and ON::LengthUnitSystem::Unset select ON::LengthUnitSystem::None. |
void ON_ParseSettings::SetContextLocaleId | ( | unsigned int | context_locale_id | ) |
Set the prefered locale id for parsing unit names. This local id is used to resolve ambiguous unit names.
prefered_locale_id | [in] The Microsoft locale id that identifies the locale that should be used to resolve ambiguous parsing situtations. The default value is zero, which means ambiguous situations are not parsed. |
void ON_ParseSettings::SetDefaultAngleUnitSystem | ( | ON::AngleUnitSystem | context_angle_unit_system | ) |
Deprecated. Use SetContextAngleUnitSystem().
ON_DEPRECTATED
void ON_ParseSettings::SetParseAddition | ( | bool | bParseAddition | ) |
bParseDivision | [in] True if addition should be permitted in number parsing. |
See ON_ParseSettings::ParseAddition() for details about this property.
void ON_ParseSettings::SetParseArcDegreesMinutesSeconds | ( | bool | bParseArcDegreesMinutesSeconds | ) |
bParseArcDegreesMinutesSeconds | [in] True if angle value parsing should parse strings like 2deg17'15" and return a length value of ((2.0*60.0 + 17..0)*60.0 + 15.0) arc seconds |
See ON_ParseSettings::ParseArcDegreesMinutesSeconds() for details about this property.
void ON_ParseSettings::SetParseArithmeticExpression | ( | bool | bParseArithmeticExpression | ) |
bParseArithmeticExpression | [in] True if formulae should be parsed. |
See ON_ParseSettings::ParseArithmeticExpression() for details about this property.
void ON_ParseSettings::SetParseCarriageReturnAsLeadingWhiteSpace | ( | bool | bParseCarriageReturnAsLeadingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseCarriageReturnAsTrailingWhiteSpace | ( | bool | bParseParseCarriageReturnAsTrailingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseCommaAsDecimalPoint | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseCommaAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseDAsExponentInScientificENotation | ( | bool | bParseDAsExponentInScientificENotation | ) |
bParseDAsExponentInScientificENotation | [in] True if both 'D' and 'E' can mark the beginning of the exponent in scientific E notation. |
See ON_ParseSettings::ParseDAsExponentInScientificENotation() for details about this property.
void ON_ParseSettings::SetParseDecimalPoint | ( | bool | bParseDecimalPoint | ) |
bDecimalPoint | [in] True if a decimal point should be parsed. |
See ON_ParseSettings::ParseDecimalPoint() for details about this property.
void ON_ParseSettings::SetParseDivideByZeroError | ( | bool | bParseDivideByZeroError | ) |
void ON_ParseSettings::SetParseDivision | ( | bool | bParseDivision | ) |
bParseDivision | [in] True if division should be permitted in number parsing. |
See ON_ParseSettings::ParseDivision() for details about this property.
void ON_ParseSettings::SetParseExplicitFormulaExpression | ( | bool | bParseExplicitFormulaExpression | ) |
bParseExplicitFormulaExpression | [in] True if explicity formulae should be parsed. |
See ON_ParseSettings::ParseExplicitFormulaExpression() for details about this property.
void ON_ParseSettings::SetParseFeetInches | ( | bool | bParseFeetInches | ) |
bParseFeetInches | [in] True if length value parsing should parse strings like 1'4-3/8" and return a length value of 16.375 inches. |
See ON_ParseSettings::ParseFeetInches() for details about this property.
void ON_ParseSettings::SetParseFormFeedAsLeadingWhiteSpace | ( | bool | bParseFormFeedAsLeadingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseFormFeedAsTrailingWhiteSpace | ( | bool | bParseParseFormFeedAsTrailingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseFullStopAsDecimalPoint | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseFullStopAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseHorizontalTabAsWhiteSpace | ( | bool | bParseHorizontalTabAsWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseHyphenAsNumberDash | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseHyphenMinusAsNumberDash | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseIntegerDashFraction | ( | bool | bParseIntegerDashFraction | ) |
bParseIntegerDashFraction | [in] True if strings like "5-3/8" should be parsed as a single number |
See ON_ParseSettings::ParseIntegerDashFraction() for details about this property.
void ON_ParseSettings::SetParseInvalidExpressionError | ( | bool | bParseInvalidExpressionError | ) |
void ON_ParseSettings::SetParseLeadingWhiteSpace | ( | bool | bParseLeadingWhiteSpace | ) |
bParseLeadingWhiteSpace | [in] True if leading white space should be parsed. |
See ON_ParseSettings::ParseLeadingWhiteSpace() for details about this property.
void ON_ParseSettings::SetParseLineFeedAsLeadingWhiteSpace | ( | bool | bParseLineFeedAsLeadingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseLineFeedAsTrailingWhiteSpace | ( | bool | bParseLineFeedAsTrailingWhiteSpacee | ) |
The default value is true.
void ON_ParseSettings::SetParseMathFunctions | ( | bool | bParseMathFunctions | ) |
bParseMathFunctions | [in] True if math functions should be parsed in expressions. |
See ON_ParseSettings::ParseMathFunctions() for details about this property.
void ON_ParseSettings::SetParseMultiplication | ( | bool | bParseMultiplication | ) |
bParseMultiplication | [in] True if muiltiplication should be permitted in number parsing. |
See ON_ParseSettings::ParseMultiplication() for details about this property.
void ON_ParseSettings::SetParseNoBreakHyphenAsNumberDash | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseNoBreakSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseNoBreakSpaceAsWhiteSpace | ( | bool | bParseNoBreakSpaceAsWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseNoBreakThinSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseNoBreakThinSpaceAsWhiteSpace | ( | bool | bParseNoBreakThinSpaceAsWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseOverflowError | ( | bool | bParseOverflowError | ) |
void ON_ParseSettings::SetParsePairedParentheses | ( | bool | bParsePairedParentheses | ) |
bParseDivision | [in] True if paired parentheses should be permitted in number parsing. |
See ON_ParseSettings::PairedParentheses() for details about this property.
void ON_ParseSettings::SetParsePi | ( | bool | bParsePi | ) |
bParsePi | [in] True if number parsing should treat "PI", "Pi" "pi", and unicode code points 0x03A0 and 0x03C0 as 3.141592653589793238462643. |
See ON_ParseSettings::ParsePi() for details about this property.
void ON_ParseSettings::SetParseRationalNumber | ( | bool | bParseRationalNumber | ) |
bParseRationalNumber | [in] True if rational numbers like 3/4 and 8/5 should be parsed. |
See ON_ParseSettings::ParseRationalNumber() for details about this property.
void ON_ParseSettings::SetParseScientificENotation | ( | bool | bParseScientificENotation | ) |
bParseScientificENotation | [in] True if scientific E notation should be parsed. |
See ON_ParseSettings::ParseScientificENotation() for details about this property.
void ON_ParseSettings::SetParseSignificandDecimalPoint | ( | bool | bParseSignificandDecimalPoint | ) |
bParseSignificandDecimalPoint | [in] True if a decimal point in a decimal point in a decimal number or the significand of a scientific E notation number should be parsed. |
See ON_ParseSettings::ParseSignificandDecimalPoint() for details about this property.
void ON_ParseSettings::SetParseSignificandDigitSeparators | ( | bool | bParseSignificandDigitSeparators | ) |
bParseSignificandDigitSeparators | [in] True if digit separators in a decimal number or a significand of a scientific E notation number should be parsed. |
See ON_ParseSettings::ParseSignificandDigitSeparators() for details about this property.
void ON_ParseSettings::SetParseSignificandFractionalPart | ( | bool | bParseSignificandFractionalPart | ) |
bParseSignificandFractionalPart | [in] True if digits after the decimal point in a decimal number or the significand of a scientific E notation number should be parsed. |
See ON_ParseSettings::ParseSignificandFractionalPart() for details about this property.
void ON_ParseSettings::SetParseSignificandIntegerPart | ( | bool | bParseSignificandIntegerPart | ) |
bParseSignificandIntegerPart | [in] True if digits before a decimal point in a decimal number or the significand of a scientific E notation number should be parsed. |
See ON_ParseSettings::ParseSignificandIntegerPart() for details about this property.
void ON_ParseSettings::SetParseSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseSpaceAsWhiteSpace | ( | bool | bParseSpaceAsWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseSubtraction | ( | bool | bParseSubtraction | ) |
bParseDivision | [in] True if subtraction should be permitted in number parsing. |
See ON_ParseSettings::ParseSubtraction() for details about this property.
void ON_ParseSettings::SetParseSurveyorsNotation | ( | bool | bParseSurveyorsNotation | ) |
bParseSurveyorsNotation | [in] True if angle value parsing should parse surveyor's notation like N30W. |
See ON_ParseSettings::ParseSurveyorsNotation() for details about this property.
void ON_ParseSettings::SetParseThinSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseThinSpaceAsWhiteSpace | ( | bool | bParseThinSpaceAsWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseUnaryMinus | ( | bool | bParseUnaryMinus | ) |
bParseUnaryMinus | [in] True if unary minus should be parsed. |
See ON_ParseSettings::ParseUnaryMinus() for details about this property.
void ON_ParseSettings::SetParseUnaryPlus | ( | bool | bParseUnaryPlus | ) |
bParseUnaryPlus | [in] True if unary plus should be parsed. |
See ON_ParseSettings::ParseUnaryPlus() for details about this property.
void ON_ParseSettings::SetParseVerticalTabAsLeadingWhiteSpace | ( | bool | bParseVerticalTabAsLeadingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseVerticalTabAsTrailingWhiteSpace | ( | bool | bParseParseVerticalTabAsTrailingWhiteSpace | ) |
The default value is true.
void ON_ParseSettings::SetParseWhiteSpaceBetweenFeetAndInches | ( | bool | bParseWhiteSpaceBetweenFeetAndInches | ) |
bParseWhiteSpaceBetweenFeetAndInches | [in] True if strings like these 1' 3" 1ft 3in will be parsed as 15 inches |
See ON_ParseSettings::ParseWhiteSpaceBetweenFeetAndInches() for details about this property.
void ON_ParseSettings::SetParseWhiteSpaceBetweenValueAndUnitSystem | ( | bool | bParseWhiteSpaceBetweenValueAndUnitSystem | ) |
bParseWhiteSpaceBetweenValueAndUnitSystem | [in] True if then strings like these 2 meters 2meters 2 m 2m should be parsed as 2 meters. |
See ON_ParseSettings::ParseWhiteSpaceBetweenValueAndUnitSystem() for details about this property.
void ON_ParseSettings::SetPreferedLocaleId | ( | unsigned int | context_locale_id | ) |
Deprecated. Use SetConextLocaleId().
ON_DEPRECTATED
|
static |
|
static |
|
static |
|
static |
The double number settings parse and optional unary + or unary - and then parse a number that can be integer, decimal, or scientific e notation.
|
static |
ON_ParseSetting::FalseSettings has all parsing options set to false.
A common use of ON_ParseSettings FalseSettings is to intialize ON_ParseSettings classes that are used to report what happened during parsing. Any parsing results value set to true after parsing indicates that type of parsing occured.
|
static |
The integer settings parse and optional unary + or unary - and then parses one or more digits. Parsing stops after the last digit.
|
static |
The rational number settings parse and optional unary + or unary - and then parse one or more digits. If a rational number fraction bar follows the last digit in the numerator, then it is parsed and an integer denominator is parsed. The denominator cannot have a unary + or - preceding the digits. Parsing stops after the last digit in the denominator.
|
static |
The real number settings parse and optional unary + or unary - and then parse a number that can be integer, decimal, scientific e notation or pi.