#include <opennurbs_parse.h>
|
static int | CompareLocaleIdUnitSystemName (const ON_AngleUnitName &a, const ON_AngleUnitName &b) |
| Dictionary compare of all ON_LengthUnitName information in the order locale id, unit system, name, singular, plural More...
|
|
static int | CompareUnitSystemLocaleIdName (const ON_AngleUnitName &a, const ON_AngleUnitName &b) |
| Dictionary compare of all ON_LengthUnitName information in the order unit system, locale id, name, singular, plural More...
|
|
static ON_AngleUnitName | Create (unsigned int locale_id, ON::AngleUnitSystem angle_unit_system, bool bPlural) |
|
static unsigned int | GetAngleUnitNameList (size_t angle_unit_list_capacity, class ON_AngleUnitName *angle_unit_list) |
| Get list of angle unit names and abbreviations and their corresponding unit systems that are recognized by ON_ParseAngleUnitName(). More...
|
|
◆ ON_AngleUnitName() [1/2]
ON_AngleUnitName::ON_AngleUnitName |
( |
| ) |
|
|
default |
◆ ~ON_AngleUnitName()
ON_AngleUnitName::~ON_AngleUnitName |
( |
| ) |
|
|
default |
◆ ON_AngleUnitName() [2/2]
◆ AngleUnit()
ON::AngleUnitSystem ON_AngleUnitName::AngleUnit |
( |
| ) |
const |
◆ AngleUnitAndNameAreSet()
bool ON_AngleUnitName::AngleUnitAndNameAreSet |
( |
| ) |
const |
- Returns
- True if the angle unit system is set and the name is not empty. False if length unit system is ON::AngleUnitSystem::None or ON::AngleUnitSystem::Unset or the name is empty.
◆ AngleUnitIsSet()
bool ON_AngleUnitName::AngleUnitIsSet |
( |
| ) |
const |
- Returns
- True if the angle unit system is set. False if angle unit system is ON::AngleUnitSystem::None or ON::AngleUnitSystem::Unset.
◆ AngleUnitIsSetOrNone()
bool ON_AngleUnitName::AngleUnitIsSetOrNone |
( |
| ) |
const |
- Returns
- True if the angle unit system is set or is ON::AngleUnitSystem::None
◆ AngleUnitName()
const wchar_t* ON_AngleUnitName::AngleUnitName |
( |
| ) |
const |
- Returns
- A pointer to a localized angle unit name or a pointer to an empty string.
Never returns nullptr.
◆ AngleUnitNameIsEmpty()
bool ON_AngleUnitName::AngleUnitNameIsEmpty |
( |
| ) |
const |
◆ AngleUnitNameIsNotEmpty()
bool ON_AngleUnitName::AngleUnitNameIsNotEmpty |
( |
| ) |
const |
◆ AngleUnitNameIsPlural()
bool ON_AngleUnitName::AngleUnitNameIsPlural |
( |
| ) |
const |
Some names and name abbreviations are both singular and plural.
◆ AngleUnitNameIsSingular()
bool ON_AngleUnitName::AngleUnitNameIsSingular |
( |
| ) |
const |
Some names and name abbreviations are both singular and plural.
◆ CompareLocaleIdUnitSystemName()
Dictionary compare of all ON_LengthUnitName information in the order locale id, unit system, name, singular, plural
◆ CompareUnitSystemLocaleIdName()
Dictionary compare of all ON_LengthUnitName information in the order unit system, locale id, name, singular, plural
◆ Create()
static ON_AngleUnitName ON_AngleUnitName::Create |
( |
unsigned int |
locale_id, |
|
|
ON::AngleUnitSystem |
angle_unit_system, |
|
|
bool |
bPlural |
|
) |
| |
|
static |
◆ GetAngleUnitNameList()
static unsigned int ON_AngleUnitName::GetAngleUnitNameList |
( |
size_t |
angle_unit_list_capacity, |
|
|
class ON_AngleUnitName * |
angle_unit_list |
|
) |
| |
|
static |
Get list of angle unit names and abbreviations and their corresponding unit systems that are recognized by ON_ParseAngleUnitName().
- Parameters
-
angle_unit_list_capacity | [in] number of available elements in angle_unit_list[] If angle_unit_list_capacity is zero and angle_unit_list is null, then the number of angle unit names is returned. |
angle_unit_list | [out] The list of angle unit names is returned here. |
- Returns
Number of angle unit names and abbreviations.
If angle_unit_list_capacity is zero and angle_unit_list is null, then the number of angle unit names is returned.
unsigned int count = ON_GetAngleUnitNameList(0,0);
ON_UnitName* angle_unit_list = new (std::nothrow) ON_UnitName[capacity];
count = ON_GetAngleUnitNameList(count,angle_unit_list);
...
delete[] angle_unit_list;
◆ LocaleId()
unsigned int ON_AngleUnitName::LocaleId |
( |
| ) |
const |
◆ operator=()
◆ None