Rhino C++ API
8.10
|
#include <opennurbs_parse.h>
Public Types | |
enum | { max_number_str_count = 2000, max_expression_str_count = 2147483645 } |
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 |
static const ON_ParseSettings | FalseSettings |
static const ON_ParseSettings | IntegerNumberSettings |
static const ON_ParseSettings | RationalNumberSettings |
static const ON_ParseSettings | RealNumberSettings |
anonymous enum |
ON_ParseSettings::ON_ParseSettings | ( | ) |
Description: The default constructor 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 | ||
) |
Description: 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 |
Returns: The default angle unit system that is used when a value must be parsed as an angle and no angle unit system is explicitly or implicitly specified.
ON::LengthUnitSystem ON_ParseSettings::ContextLengthUnitSystem | ( | ) | const |
Returns: The default angle unit system that is used when a value must be parsed as an angle and no angle unit system is explicitly or implicitly specified.
unsigned int ON_ParseSettings::ContextLocaleId | ( | ) | const |
Returns: The Microsoft locale id that identifies the locale that should be used to resolve ambiguous parsing situations. The default value is zero, which means ambiguous situations are not parsed. Example: When parsing angles, the string "Grad" is ambiguous. In German "Grad" identifies arc degree angle units and in English "Grad" identifies gradian angle units. If angle parsing encounters "Grad", it uses the value of ContextLocaleId() to determine what arc unit system is being identified.
ON::AngleUnitSystem ON_ParseSettings::DefaultAngleUnitSystem | ( | ) | const |
ON_DEPRECTATED.
Description: Deprecated. Use ContextAngleUnitSystem().
bool ON_ParseSettings::IsAdditionSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as an addition operator
bool ON_ParseSettings::IsDecimalExponentSymbol | ( | ON__UINT32 | c | ) | const |
e E (optionally d and/or D)
Parameters: c - [in] Returns: True if c should be parsed as decimal exponent symbol
bool ON_ParseSettings::IsDecimalPoint | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a decimal point
char ON_ParseSettings::IsDigit | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: Returns '0' through '9' if c is a digit, otherwise returns 0.
bool ON_ParseSettings::IsDigitSeparator | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a digit separator
bool ON_ParseSettings::IsDivisionSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a division operator
bool ON_ParseSettings::IsGreekPi | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c is 0x03A or 0x03C
bool ON_ParseSettings::IsInteriorWhiteSpace | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as interior white space.
bool ON_ParseSettings::IsLeadingWhiteSpace | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as leading white space
bool ON_ParseSettings::IsLeftParenthesisSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a left parenthesis symbol
bool ON_ParseSettings::IsMultiplicationSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a multiplication operator
bool ON_ParseSettings::IsNumberDash | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as number dash when parsing strings like "1-3/4".
bool ON_ParseSettings::IsRationalNumberFractionBar | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a rational number fraction bar
bool ON_ParseSettings::IsRightParenthesisSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a right parenthesis symbol
bool ON_ParseSettings::IsSubtractionSymbol | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as a subtraction operator
bool ON_ParseSettings::IsTrailingWhiteSpace | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as trailing white space
bool ON_ParseSettings::IsUnaryMinus | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as unary minus
bool ON_ParseSettings::IsUnaryPlus | ( | ON__UINT32 | c | ) | const |
Parameters: c - [in] Returns: True if c should be parsed as unary plus
ON_ParseSettings& ON_ParseSettings::operator&= | ( | const ON_ParseSettings & | other | ) |
ON_ParseSettings& ON_ParseSettings::operator|= | ( | const ON_ParseSettings & | other | ) |
bool ON_ParseSettings::ParseAddition | ( | ) | const |
Returns: True if addition signs that appear between numbers will be parsed. Example: If this property is true, then strings like 1+2 will be parsed as 3. Remarks:
bool ON_ParseSettings::ParseArcDegreesMinutesSeconds | ( | ) | const |
Returns: True if an angle value may be specified as a combination of arc degrees, arc minutes and arc seconds. Example: If this property is true, then strings like these 2degrees30minutes 2deg30' will be parsed as 2.0*60.0 + 30.0 arc minutes 2degrees14minutes15seconds 2deg14'15" will be parsed as (2*60.0 + 14.0)*60.0 + 15.0 arc seconds. Remarks: The default value is true.
bool ON_ParseSettings::ParseArithmeticExpression | ( | ) | const |
Returns: True if a arithmetic should be parsed in expressions. Example: If parsing expression arithmetic is enabled, then the string "3/0.25" will return a value of 12. Remarks:
bool ON_ParseSettings::ParseCarriageReturnAsLeadingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseCarriageReturnAsTrailingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseCommaAsDecimalPoint | ( | ) | const |
Returns: True if a comma should be parsed as a decimal point. Remarks:
bool ON_ParseSettings::ParseCommaAsDigitSeparator | ( | ) | const |
Returns: True if a comma should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseDAsExponentInScientificENotation | ( | ) | const |
Returns: True if a number may use scientific E notation may use 'D' or 'E' to specify multiplication by a power of 10. Example: If parsing 'D' as 'E' in scientific E notation is enabled, then the string "2.99792458D8" will be parsed as 2999792458. Remarks:
bool ON_ParseSettings::ParseDivideByZeroError | ( | ) | const |
Returns: True if parsing and expression resulted in a divide by zero.
bool ON_ParseSettings::ParseDivision | ( | ) | const |
Returns: True if division signs that appear between numbers will be parsed. Example: If this property is true, then strings like 1/4 will be parsed as 0.25. Remarks:
bool ON_ParseSettings::ParseError | ( | ) | const |
Returns: True if any of the following are true. ParseInvalidExpressionError() ParseDivideByZeroError() ParseOverflowError()
bool ON_ParseSettings::ParseExplicitFormulaExpression | ( | ) | const |
Returns: True if a formulae contained bracketed on the left by =( and on the right by ) should be parsed in expressions. Example: If parsing expression formulae is enabled, then the string "=((1+sqrt(5))/2)" will return a value of 1.6180339887498948. Remarks:
bool ON_ParseSettings::ParseFeetInches | ( | ) | const |
Returns: True if a length value may be specified as combination of US customary feet and inch lengths. Example: If this property is true, then strings like these 1'-4-3/8" 1ft-3-3/8in 1'4.375" 1.0feet4.375inches will be parsed as 16.375 inches. Remarks: The default value is true.
bool ON_ParseSettings::ParseFormFeedAsLeadingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseFormFeedAsTrailingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseFullStopAsDecimalPoint | ( | ) | const |
Returns: True if a full stop (period) should be parsed as a decimal point. Remarks:
bool ON_ParseSettings::ParseFullStopAsDigitSeparator | ( | ) | const |
Returns: True if a full stop (period) should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseHorizontalTabAsWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseHyphenAsNumberDash | ( | ) | const |
Returns: True if a unicode hyphen (code point 0x2010) should be parsed as a number dash during integer-dash-fraction parsing. Remarks:
bool ON_ParseSettings::ParseHyphenMinusAsNumberDash | ( | ) | const |
Returns: True if a unicode hyphen-minus (code point 0x002D) should be parsed as a number dash during integer-dash-fraction parsing. Remarks:
bool ON_ParseSettings::ParseIntegerDashFraction | ( | ) | const |
Returns: True if a number may be specified as an integer followed by a dash and a fraction. Example: If this property is true, then the string "4-3/8" will return a value of 4.375. Remarks:
bool ON_ParseSettings::ParseInvalidExpressionError | ( | ) | const |
Returns: True if parsing and expression failed because the expression did not make sense.
bool ON_ParseSettings::ParseLeadingWhiteSpace | ( | ) | const |
Returns: True if leading white space should be parsed. Remarks: The default value is true.
bool ON_ParseSettings::ParseLineFeedAsLeadingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseLineFeedAsTrailingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseMathFunctions | ( | ) | const |
Returns: True if the math functions sin, cos, tan asin, acos, atan, atan2, sinh, cosh, tanh, ln, exp, log10, pow, should be parsed in expressions. Remarks:
bool ON_ParseSettings::ParseMultiplication | ( | ) | const |
Returns: True if multiplication signs that appear between numbers will be parsed. Example: If this property is true, then strings like 2*3 will be parsed as 6.0 Remarks:
bool ON_ParseSettings::ParseNoBreakHyphenAsNumberDash | ( | ) | const |
Returns: True if a unicode non-breaking hyphen (code point 0x2011) should be parsed as a number dash during integer-dash-fraction parsing. Remarks:
bool ON_ParseSettings::ParseNoBreakSpaceAsDigitSeparator | ( | ) | const |
Returns: True if a comma should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseNoBreakSpaceAsWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseNoBreakThinSpaceAsDigitSeparator | ( | ) | const |
Returns: True if a comma should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseNoBreakThinSpaceAsWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseOverflowError | ( | ) | const |
Returns: True if parsing and expression created a number that a double cannot represent.
bool ON_ParseSettings::ParsePairedParentheses | ( | ) | const |
Returns: True if paired parentheses symbols that are encountered during number parsing will be parsed. Example: If this property is true, then strings like 2(3+4) will be parsed as 14. Remarks:
bool ON_ParseSettings::ParsePi | ( | ) | const |
Returns: True if the value of pi may be specified as "pi", "PI", "Pi", "pI", unicode Greek capital letter pi (code point 0x03A0), or unicode Greek small letter pi (code point 0x03C0). Example: If this property is true, then strings "pi", "PI", "Pi", "pI", L"\x03A0" (unicode greek capital letter pi) and L"\x03C0" (unicode greek small letter pi) will be parsed as if they were "3.141592653589793238462643". In addition, if the pi strings appear next to something that is parsed as a number, the result will be multiplied by pi. For example, "3pi" and pi3.0 will return 3.0*ON_PI. If division parsing is enabled, then "3pi/4" and 3/4pi" will return 0.75*ON_PI. Remarks: The default value is true.
bool ON_ParseSettings::ParseRationalNumber | ( | ) | const |
Returns: True if rational numbers should be parsed. Example: If this property is true, then strings "3/4" and "8/5" will be parsed. The numerator and denominator must parse as integers. If you: decimal points and scientific notation cannot appear Remarks:
bool ON_ParseSettings::ParseScientificENotation | ( | ) | const |
Returns: True if a number may use scientific E notation to specify multiplication by a power of 10. Example: If parsing scientific E notation is enables, then the string "2.99792458e8" will be parsed as 2999792458. Remarks:
bool ON_ParseSettings::ParseSignificandDecimalPoint | ( | ) | const |
Returns: True if the decimal points should be parsed in a decimal number or scientific E notation number. Remarks: The default is true.
bool ON_ParseSettings::ParseSignificandDigitSeparators | ( | ) | const |
Returns: True if digit separators should be parsed in a decimal number or scientific E notation number. Remarks: The default value is true.
bool ON_ParseSettings::ParseSignificandFractionalPart | ( | ) | const |
Returns: True if digits after a decimal point should be parsed in a decimal number or scientific E notation number. Remarks: The default is true.
bool ON_ParseSettings::ParseSignificandIntegerPart | ( | ) | const |
Returns: True if digits before a decimal point should be parsed in a decimal number or scientific E notation number. Remarks: The default value is true.
bool ON_ParseSettings::ParseSpaceAsDigitSeparator | ( | ) | const |
Returns: True if a comma should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseSpaceAsWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseSubtraction | ( | ) | const |
Returns: True if subtraction signs that appear between numbers will be parsed. Example: If this property is true, then strings like 2-1 will be parsed as 1. Remarks:
bool ON_ParseSettings::ParseSurveyorsNotation | ( | ) | const |
Returns: True if an angle values may be specified using surveyor's notation. Example: If this property is true, then strings like these N30W S12<degree symbol>15'22"W N45.7899E S47'E will be parsed as angles. Remarks: The first character must be N, n, S or s. The angle must be a specified 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 |
Returns: True if a comma should be parsed as a digit separator. Remarks:
bool ON_ParseSettings::ParseThinSpaceAsWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseUnaryMinus | ( | ) | const |
Returns: True if a number may begin with a unary minus. Remarks: The default value is true.
bool ON_ParseSettings::ParseUnaryPlus | ( | ) | const |
Returns: True if a number may begin with a unary plus. Remarks: The default value is true.
bool ON_ParseSettings::ParseVerticalTabAsLeadingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseVerticalTabAsTrailingWhiteSpace | ( | ) | const |
Remarks: The default value is true.
bool ON_ParseSettings::ParseWhiteSpaceBetweenFeetAndInches | ( | ) | const |
Returns: True if whitespace between a length in feet and a length in inches will is permitted. Example: If this property is true, then strings like these 1'3" 1' 3" 1ft3in 1ft 3in will be parsed as 15 inches Remarks: The default value is true.
bool ON_ParseSettings::ParseWhiteSpaceBetweenValueAndUnitSystem | ( | ) | const |
Returns: True if whitespace between a value and unit system will is permitted. Example: If this property is true, then strings like these 2 meters 2meters 2 m 2m will be parsed as 2 meters Remarks: The default value is true.
unsigned int ON_ParseSettings::PreferedLocaleId | ( | ) | const |
ON_DEPRECTATED.
Description: Deprecated. Use ContextLocaleId().
void ON_ParseSettings::SetAllExpressionSettingsToFalse | ( | ) |
Description: Set every possible expression parsing setting to false. Remarks: 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 | ( | ) |
Description: Set every possible setting to false or zero.
void ON_ParseSettings::SetContextAngleUnitSystem | ( | ON::AngleUnitSystem | context_angle_unit_system | ) |
Description: 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.
Parameters: 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 | ) |
Description: 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.
Parameters: 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 | ) |
Description: Set the preferred locale id for parsing unit names. This local id is used to resolve ambiguous unit names.
Parameters: prefered_locale_id - [in] The Microsoft locale id that identifies the locale that should be used to resolve ambiguous parsing situations. The default value is zero, which means ambiguous situations are not parsed.
Example: When parsing angles, the string "Grad" is ambiguous. In German "Grad" identifies arc degree angle units and in English "Grad" identifies gradian angle units. If angle parsing encounters "Grad" and the preferred locale id is 1031 (de-de), then parsing reports the angle value as arc degree units. If angle parsing encounters "Grad" and the preferred locale id is 1033 (en-us), then parsing reports the angle values as gradian units.
void ON_ParseSettings::SetDefaultAngleUnitSystem | ( | ON::AngleUnitSystem | context_angle_unit_system | ) |
ON_DEPRECTATED.
Description: Deprecated. Use SetContextAngleUnitSystem().
void ON_ParseSettings::SetParseAddition | ( | bool | bParseAddition | ) |
Parameters: bParseDivision - [in] True if addition should be permitted in number parsing. Remarks: See ON_ParseSettings::ParseAddition() for details about this property.
void ON_ParseSettings::SetParseArcDegreesMinutesSeconds | ( | bool | bParseArcDegreesMinutesSeconds | ) |
Parameters: 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 Remarks: See ON_ParseSettings::ParseArcDegreesMinutesSeconds() for details about this property.
void ON_ParseSettings::SetParseArithmeticExpression | ( | bool | bParseArithmeticExpression | ) |
Parameters: bParseArithmeticExpression - [in] True if formulae should be parsed. Remarks: See ON_ParseSettings::ParseArithmeticExpression() for details about this property.
void ON_ParseSettings::SetParseCarriageReturnAsLeadingWhiteSpace | ( | bool | bParseCarriageReturnAsLeadingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseCarriageReturnAsTrailingWhiteSpace | ( | bool | bParseParseCarriageReturnAsTrailingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseCommaAsDecimalPoint | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseCommaAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseDAsExponentInScientificENotation | ( | bool | bParseDAsExponentInScientificENotation | ) |
Parameters: bParseDAsExponentInScientificENotation - [in] True if both 'D' and 'E' can mark the beginning of the exponent in scientific E notation. Remarks: See ON_ParseSettings::ParseDAsExponentInScientificENotation() for details about this property.
void ON_ParseSettings::SetParseDecimalPoint | ( | bool | bParseDecimalPoint | ) |
Parameters: bDecimalPoint - [in] True if a decimal point should be parsed. Remarks: See ON_ParseSettings::ParseDecimalPoint() for details about this property.
void ON_ParseSettings::SetParseDivideByZeroError | ( | bool | bParseDivideByZeroError | ) |
void ON_ParseSettings::SetParseDivision | ( | bool | bParseDivision | ) |
Parameters: bParseDivision - [in] True if division should be permitted in number parsing. Remarks: See ON_ParseSettings::ParseDivision() for details about this property.
void ON_ParseSettings::SetParseExplicitFormulaExpression | ( | bool | bParseExplicitFormulaExpression | ) |
Parameters: bParseExplicitFormulaExpression - [in] True if explicitly formulae should be parsed. Remarks: See ON_ParseSettings::ParseExplicitFormulaExpression() for details about this property.
void ON_ParseSettings::SetParseFeetInches | ( | bool | bParseFeetInches | ) |
Parameters: bParseFeetInches - [in] True if length value parsing should parse strings like 1'4-3/8" and return a length value of 16.375 inches. Remarks: See ON_ParseSettings::ParseFeetInches() for details about this property.
void ON_ParseSettings::SetParseFormFeedAsLeadingWhiteSpace | ( | bool | bParseFormFeedAsLeadingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseFormFeedAsTrailingWhiteSpace | ( | bool | bParseParseFormFeedAsTrailingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseFullStopAsDecimalPoint | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseFullStopAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseHorizontalTabAsWhiteSpace | ( | bool | bParseHorizontalTabAsWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseHyphenAsNumberDash | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseHyphenMinusAsNumberDash | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseIntegerDashFraction | ( | bool | bParseIntegerDashFraction | ) |
Parameters: bParseIntegerDashFraction - [in] True if strings like "5-3/8" should be parsed as a single number Remarks: See ON_ParseSettings::ParseIntegerDashFraction() for details about this property.
void ON_ParseSettings::SetParseInvalidExpressionError | ( | bool | bParseInvalidExpressionError | ) |
void ON_ParseSettings::SetParseLeadingWhiteSpace | ( | bool | bParseLeadingWhiteSpace | ) |
Parameters: bParseLeadingWhiteSpace - [in] True if leading white space should be parsed. Remarks: See ON_ParseSettings::ParseLeadingWhiteSpace() for details about this property.
void ON_ParseSettings::SetParseLineFeedAsLeadingWhiteSpace | ( | bool | bParseLineFeedAsLeadingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseLineFeedAsTrailingWhiteSpace | ( | bool | bParseLineFeedAsTrailingWhiteSpacee | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseMathFunctions | ( | bool | bParseMathFunctions | ) |
Parameters: bParseMathFunctions - [in] True if math functions should be parsed in expressions. Remarks: See ON_ParseSettings::ParseMathFunctions() for details about this property.
void ON_ParseSettings::SetParseMultiplication | ( | bool | bParseMultiplication | ) |
Parameters: bParseMultiplication - [in] True if multiplication should be permitted in number parsing. Remarks: 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 | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseNoBreakThinSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseNoBreakThinSpaceAsWhiteSpace | ( | bool | bParseNoBreakThinSpaceAsWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseOverflowError | ( | bool | bParseOverflowError | ) |
void ON_ParseSettings::SetParsePairedParentheses | ( | bool | bParsePairedParentheses | ) |
Parameters: bParseDivision - [in] True if paired parentheses should be permitted in number parsing. Remarks: See ON_ParseSettings::PairedParentheses() for details about this property.
void ON_ParseSettings::SetParsePi | ( | bool | bParsePi | ) |
Parameters: bParsePi - [in] True if number parsing should treat "PI", "Pi" "pi", and unicode code points 0x03A0 and 0x03C0 as 3.141592653589793238462643. Remarks: See ON_ParseSettings::ParsePi() for details about this property.
void ON_ParseSettings::SetParseRationalNumber | ( | bool | bParseRationalNumber | ) |
Parameters: bParseRationalNumber - [in] True if rational numbers like 3/4 and 8/5 should be parsed. Remarks: See ON_ParseSettings::ParseRationalNumber() for details about this property.
void ON_ParseSettings::SetParseScientificENotation | ( | bool | bParseScientificENotation | ) |
Parameters: bParseScientificENotation - [in] True if scientific E notation should be parsed. Remarks: See ON_ParseSettings::ParseScientificENotation() for details about this property.
void ON_ParseSettings::SetParseSignificandDecimalPoint | ( | bool | bParseSignificandDecimalPoint | ) |
Parameters: 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. Remarks: See ON_ParseSettings::ParseSignificandDecimalPoint() for details about this property.
void ON_ParseSettings::SetParseSignificandDigitSeparators | ( | bool | bParseSignificandDigitSeparators | ) |
Parameters: bParseSignificandDigitSeparators - [in] True if digit separators in a decimal number or a significand of a scientific E notation number should be parsed. Remarks: See ON_ParseSettings::ParseSignificandDigitSeparators() for details about this property.
void ON_ParseSettings::SetParseSignificandFractionalPart | ( | bool | bParseSignificandFractionalPart | ) |
Parameters: 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. Remarks: See ON_ParseSettings::ParseSignificandFractionalPart() for details about this property.
void ON_ParseSettings::SetParseSignificandIntegerPart | ( | bool | bParseSignificandIntegerPart | ) |
Parameters: 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. Remarks: See ON_ParseSettings::ParseSignificandIntegerPart() for details about this property.
void ON_ParseSettings::SetParseSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseSpaceAsWhiteSpace | ( | bool | bParseSpaceAsWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseSubtraction | ( | bool | bParseSubtraction | ) |
Parameters: bParseDivision - [in] True if subtraction should be permitted in number parsing. Remarks: See ON_ParseSettings::ParseSubtraction() for details about this property.
void ON_ParseSettings::SetParseSurveyorsNotation | ( | bool | bParseSurveyorsNotation | ) |
Parameters: bParseSurveyorsNotation - [in] True if angle value parsing should parse surveyor's notation like N30W. Remarks: See ON_ParseSettings::ParseSurveyorsNotation() for details about this property.
void ON_ParseSettings::SetParseThinSpaceAsDigitSeparator | ( | bool | bParse | ) |
void ON_ParseSettings::SetParseThinSpaceAsWhiteSpace | ( | bool | bParseThinSpaceAsWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseUnaryMinus | ( | bool | bParseUnaryMinus | ) |
Parameters: bParseUnaryMinus - [in] True if unary minus should be parsed. Remarks: See ON_ParseSettings::ParseUnaryMinus() for details about this property.
void ON_ParseSettings::SetParseUnaryPlus | ( | bool | bParseUnaryPlus | ) |
Parameters: bParseUnaryPlus - [in] True if unary plus should be parsed. Remarks: See ON_ParseSettings::ParseUnaryPlus() for details about this property.
void ON_ParseSettings::SetParseVerticalTabAsLeadingWhiteSpace | ( | bool | bParseVerticalTabAsLeadingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseVerticalTabAsTrailingWhiteSpace | ( | bool | bParseParseVerticalTabAsTrailingWhiteSpace | ) |
Remarks: The default value is true.
void ON_ParseSettings::SetParseWhiteSpaceBetweenFeetAndInches | ( | bool | bParseWhiteSpaceBetweenFeetAndInches | ) |
Parameters: bParseWhiteSpaceBetweenFeetAndInches - [in] True if strings like these 1' 3" 1ft 3in will be parsed as 15 inches Remarks: See ON_ParseSettings::ParseWhiteSpaceBetweenFeetAndInches() for details about this property.
void ON_ParseSettings::SetParseWhiteSpaceBetweenValueAndUnitSystem | ( | bool | bParseWhiteSpaceBetweenValueAndUnitSystem | ) |
Parameters: bParseWhiteSpaceBetweenValueAndUnitSystem - [in] True if then strings like these 2 meters 2meters 2 m 2m should be parsed as 2 meters. Remarks: See ON_ParseSettings::ParseWhiteSpaceBetweenValueAndUnitSystem() for details about this property.
void ON_ParseSettings::SetPreferedLocaleId | ( | unsigned int | context_locale_id | ) |
ON_DEPRECTATED.
Description: Deprecated. Use SetConextLocaleId().
|
static |
Description:
|
static |
Description:
|
static |
Description:
|
static |
Description: 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 |
Description: ON_ParseSetting::FalseSettings has all parsing options set to false. Remarks: A common use of ON_ParseSettings FalseSettings is to initialize 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 occurred.
|
static |
Description: The integer settings parse and optional unary + or unary - and then parses one or more digits. Parsing stops after the last digit.
|
static |
Description: 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 |
Description: 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.