Lines Matching refs:MeasureUnit
26 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
384 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) {
385 return MeasureUnit::create(0, 0, status);
388 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) {
389 return MeasureUnit::create(1, 0, status);
392 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) {
393 return MeasureUnit::create(1, 1, status);
396 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) {
397 return MeasureUnit::create(1, 2, status);
400 MeasureUnit *MeasureUnit::createAcre(UErrorCode &status) {
401 return MeasureUnit::create(2, 0, status);
404 MeasureUnit *MeasureUnit::createHectare(UErrorCode &status) {
405 return MeasureUnit::create(2, 1, status);
408 MeasureUnit *MeasureUnit::createSquareFoot(UErrorCode &status) {
409 return MeasureUnit::create(2, 2, status);
412 MeasureUnit *MeasureUnit::createSquareKilometer(UErrorCode &status) {
413 return MeasureUnit::create(2, 3, status);
416 MeasureUnit *MeasureUnit::createSquareMeter(UErrorCode &status) {
417 return MeasureUnit::create(2, 4, status);
420 MeasureUnit *MeasureUnit::createSquareMile(UErrorCode &status) {
421 return MeasureUnit::create(2, 5, status);
424 MeasureUnit *MeasureUnit::createDay(UErrorCode &status) {
425 return MeasureUnit::create(4, 0, status);
428 MeasureUnit *MeasureUnit::createHour(UErrorCode &status) {
429 return MeasureUnit::create(4, 1, status);
432 MeasureUnit *MeasureUnit::createMillisecond(UErrorCode &status) {
433 return MeasureUnit::create(4, 2, status);
436 MeasureUnit *MeasureUnit::createMinute(UErrorCode &status) {
437 return MeasureUnit::create(4, 3, status);
440 MeasureUnit *MeasureUnit::createMonth(UErrorCode &status) {
441 return MeasureUnit::create(4, 4, status);
444 MeasureUnit *MeasureUnit::createSecond(UErrorCode &status) {
445 return MeasureUnit::create(4, 5, status);
448 MeasureUnit *MeasureUnit::createWeek(UErrorCode &status) {
449 return MeasureUnit::create(4, 6, status);
452 MeasureUnit *MeasureUnit::createYear(UErrorCode &status) {
453 return MeasureUnit::create(4, 7, status);
456 MeasureUnit *MeasureUnit::createCentimeter(UErrorCode &status) {
457 return MeasureUnit::create(5, 0, status);
460 MeasureUnit *MeasureUnit::createFoot(UErrorCode &status) {
461 return MeasureUnit::create(5, 1, status);
464 MeasureUnit *MeasureUnit::createInch(UErrorCode &status) {
465 return MeasureUnit::create(5, 2, status);
468 MeasureUnit *MeasureUnit::createKilometer(UErrorCode &status) {
469 return MeasureUnit::create(5, 3, status);
472 MeasureUnit *MeasureUnit::createLightYear(UErrorCode &status) {
473 return MeasureUnit::create(5, 4, status);
476 MeasureUnit *MeasureUnit::createMeter(UErrorCode &status) {
477 return MeasureUnit::create(5, 5, status);
480 MeasureUnit *MeasureUnit::createMile(UErrorCode &status) {
481 return MeasureUnit::create(5, 6, status);
484 MeasureUnit *MeasureUnit::createMillimeter(UErrorCode &status) {
485 return MeasureUnit::create(5, 7, status);
488 MeasureUnit *MeasureUnit::createPicometer(UErrorCode &status) {
489 return MeasureUnit::create(5, 8, status);
492 MeasureUnit *MeasureUnit::createYard(UErrorCode &status) {
493 return MeasureUnit::create(5, 9, status);
496 MeasureUnit *MeasureUnit::createGram(UErrorCode &status) {
497 return MeasureUnit::create(6, 0, status);
500 MeasureUnit *MeasureUnit::createKilogram(UErrorCode &status) {
501 return MeasureUnit::create(6, 1, status);
504 MeasureUnit *MeasureUnit::createOunce(UErrorCode &status) {
505 return MeasureUnit::create(6, 2, status);
508 MeasureUnit *MeasureUnit::createPound(UErrorCode &status) {
509 return MeasureUnit::create(6, 3, status);
512 MeasureUnit *MeasureUnit::createHorsepower(UErrorCode &status) {
513 return MeasureUnit::create(7, 0, status);
516 MeasureUnit *MeasureUnit::createKilowatt(UErrorCode &status) {
517 return MeasureUnit::create(7, 1, status);
520 MeasureUnit *MeasureUnit::createWatt(UErrorCode &status) {
521 return MeasureUnit::create(7, 2, status);
524 MeasureUnit *MeasureUnit::createHectopascal(UErrorCode &status) {
525 return MeasureUnit::create(8, 0, status);
528 MeasureUnit *MeasureUnit::createInchHg(UErrorCode &status) {
529 return MeasureUnit::create(8, 1, status);
532 MeasureUnit *MeasureUnit::createMillibar(UErrorCode &status) {
533 return MeasureUnit::create(8, 2, status);
536 MeasureUnit *MeasureUnit::createKilometerPerHour(UErrorCode &status) {
537 return MeasureUnit::create(9, 0, status);
540 MeasureUnit *MeasureUnit::createMeterPerSecond(UErrorCode &status) {
541 return MeasureUnit::create(9, 1, status);
544 MeasureUnit *MeasureUnit::createMilePerHour(UErrorCode &status) {
545 return MeasureUnit::create(9, 2, status);
548 MeasureUnit *MeasureUnit::createCelsius(UErrorCode &status) {
549 return MeasureUnit::create(10, 0, status);
552 MeasureUnit *MeasureUnit::createFahrenheit(UErrorCode &status) {
553 return MeasureUnit::create(10, 1, status);
556 MeasureUnit *MeasureUnit::createCubicKilometer(UErrorCode &status) {
557 return MeasureUnit::create(11, 0, status);
560 MeasureUnit *MeasureUnit::createCubicMile(UErrorCode &status) {
561 return MeasureUnit::create(11, 1, status);
564 MeasureUnit *MeasureUnit::createLiter(UErrorCode &status) {
565 return MeasureUnit::create(11, 2, status);
585 MeasureUnit::MeasureUnit(const MeasureUnit &other)
590 MeasureUnit &MeasureUnit::operator=(const MeasureUnit &other) {
600 UObject *MeasureUnit::clone() const {
601 return new MeasureUnit(*this);
604 MeasureUnit::~MeasureUnit() {
607 const char *MeasureUnit::getType() const {
611 const char *MeasureUnit::getSubtype() const {
615 UBool MeasureUnit::operator==(const UObject& other) const {
622 const MeasureUnit &rhs = static_cast<const MeasureUnit&>(other);
629 int32_t MeasureUnit::getIndex() const {
633 int32_t MeasureUnit::getAvailable(
634 MeasureUnit *dest,
656 int32_t MeasureUnit::getAvailable(
658 MeasureUnit *dest,
679 StringEnumeration* MeasureUnit::getAvailableTypes(UErrorCode &errorCode) {
695 int32_t MeasureUnit::getIndexCount() {
699 MeasureUnit *MeasureUnit::create(int typeId, int subTypeId, UErrorCode &status) {
703 MeasureUnit *result = new MeasureUnit(typeId, subTypeId);
710 void MeasureUnit::initTime(const char *timeId) {
719 void MeasureUnit::initCurrency(const char *isoCurrency) {
732 void MeasureUnit::setTo(int32_t typeId, int32_t subTypeId) {
738 int32_t MeasureUnit::getOffset() const {