• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setSymbol函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setSymbol函数的典型用法代码示例。如果您正苦于以下问题:C++ setSymbol函数的具体用法?C++ setSymbol怎么用?C++ setSymbol使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setSymbol函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: XPowerSwim

 XPowerSwim() : xpower(0.0), secs(0.0)
 {
     setSymbol("swimscore_xpower");
     setInternalName("xPower Swim");
 }
开发者ID:Jagdfalke,项目名称:GoldenCheetah,代码行数:5,代码来源:SwimScore.cpp


示例2: Multiplication


//.........这里部分代码省略.........
    UErrorCode nlStatus = U_ZERO_ERROR;
    LocalUResourceBundlePointer nonLatnSymbols;
    if ( !isLatn ) {
        nonLatnSymbols.adoptInstead(
            ures_getByKeyWithFallback(numberElementsRes.getAlias(), nsName, NULL, &nlStatus));
        ures_getByKeyWithFallback(nonLatnSymbols.getAlias(), gSymbols, nonLatnSymbols.getAlias(), &nlStatus);
    }

    LocalUResourceBundlePointer latnSymbols(
        ures_getByKeyWithFallback(numberElementsRes.getAlias(), gLatn, NULL, &status));
    ures_getByKeyWithFallback(latnSymbols.getAlias(), gSymbols, latnSymbols.getAlias(), &status);

    UBool kMonetaryDecimalSet = FALSE;
    UBool kMonetaryGroupingSet = FALSE;
    for(int32_t i = 0; i<kFormatSymbolCount; i++) {
        if ( gNumberElementKeys[i] != NULL ) {
            UErrorCode localStatus = U_ZERO_ERROR;
            if ( !isLatn ) {
                sym = ures_getStringByKeyWithFallback(nonLatnSymbols.getAlias(),
                                                      gNumberElementKeys[i], &len, &localStatus);
                // If we can't find the symbol in the numbering system specific resources,
                // use the "latn" numbering system as the fallback.
                if ( U_FAILURE(localStatus) ) {
                    localStatus = U_ZERO_ERROR;
                    sym = ures_getStringByKeyWithFallback(latnSymbols.getAlias(),
                                                          gNumberElementKeys[i], &len, &localStatus);
                }
            } else {
                    sym = ures_getStringByKeyWithFallback(latnSymbols.getAlias(),
                                                          gNumberElementKeys[i], &len, &localStatus);
            }

            if ( U_SUCCESS(localStatus) ) {
                setSymbol((ENumberFormatSymbol)i, UnicodeString(TRUE, sym, len));
                if ( i == kMonetarySeparatorSymbol ) {
                    kMonetaryDecimalSet = TRUE;
                } else if ( i == kMonetaryGroupingSeparatorSymbol ) {
                    kMonetaryGroupingSet = TRUE;
                }
            }
        }
    }

    // If monetary decimal or grouping were not explicitly set, then set them to be the
    // same as their non-monetary counterparts.

    if ( !kMonetaryDecimalSet ) {
        setSymbol(kMonetarySeparatorSymbol,fSymbols[kDecimalSeparatorSymbol]);
    }
    if ( !kMonetaryGroupingSet ) {
        setSymbol(kMonetaryGroupingSeparatorSymbol,fSymbols[kGroupingSeparatorSymbol]);
    }

    // Obtain currency data from the currency API.  This is strictly
    // for backward compatibility; we don't use DecimalFormatSymbols
    // for currency data anymore.
    UErrorCode internalStatus = U_ZERO_ERROR; // don't propagate failures out
    UChar curriso[4];
    UnicodeString tempStr;
    ucurr_forLocale(locStr, curriso, 4, &internalStatus);

    uprv_getStaticCurrencyName(curriso, locStr, tempStr, internalStatus);
    if (U_SUCCESS(internalStatus)) {
        fSymbols[kIntlCurrencySymbol].setTo(curriso, -1);
        fSymbols[kCurrencySymbol] = tempStr;
    }
开发者ID:GuillaumeSmaha,项目名称:stringi,代码行数:67,代码来源:dcfmtsym.cpp


示例3: SymbolLayerItem

 explicit SymbolLayerItem( QgsSymbol *symbol )
 {
   setSymbol( symbol );
 }
开发者ID:dbaston,项目名称:QGIS,代码行数:4,代码来源:qgssymbolselectordialog.cpp


示例4: AerobicDecoupling

 AerobicDecoupling() : percent(0.0)
 {
     setSymbol("aerobic_decoupling");
     setInternalName("Aerobic Decoupling");
 }
开发者ID:ClaFio,项目名称:GoldenCheetah,代码行数:5,代码来源:AerobicDecoupling.cpp


示例5: TRIMPPoints

 TRIMPPoints() : score(0.0)
 {
     setSymbol("trimp_points");
     setInternalName("TRIMP Points");
 }
开发者ID:JanDeVisser,项目名称:GoldenCheetah,代码行数:5,代码来源:TRIMPPoints.cpp


示例6: NP

 NP() : np(0.0), secs(0.0)
 {
     setSymbol("coggan_np");
     setInternalName("NP");
 }
开发者ID:sglessard,项目名称:GoldenCheetah,代码行数:5,代码来源:Coggan.cpp


示例7: CObject

CLInstanceMaterial::CLInstanceMaterial() : CObject() {
    setSymbol("");
    setTarget("");

    m_bindVertexInputList = NULL;
}
开发者ID:leopoldolomas,项目名称:RioEngine,代码行数:6,代码来源:clinstancematerial.cpp


示例8: switch


//.........这里部分代码省略.........
        }
        break;
        case 13: {
            QString _r = getTime();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 14: {
            QString _r = depsurx();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 15: {
            QString _r = arvsurx();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 16: {
            QString _r = depsury();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 17: {
            QString _r = arvsury();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 18: {
            QString _r = depsurz();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 19: {
            QString _r = arvsurz();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 20: {
            QString _r = getNextUpdate();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 21: {
            QString _r = getFrequence();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 22: {
            QString _r = getSymbol();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        case 23:
            ItFogs();
            break;
        case 24: {
            int _r = getPositionCiel();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r;
        }
        break;
        case 25:
            setSymbol();
            break;
        case 26: {
            QString _r = getRandomInteger();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r;
        }
        break;
        default:
            ;
        }
        _id -= 27;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0:
            *reinterpret_cast< Forecast*>(_v) = getCurrentForecast();
            break;
        }
        _id -= 1;
    } else if (_c == QMetaObject::WriteProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
开发者ID:MayasHaddad,项目名称:Visiweather,代码行数:101,代码来源:moc_qml_interface.cpp


示例9: PeakPower20s

 PeakPower20s()
 {
     setSecs(20);
     setSymbol("20s_critical_power");
     setName(tr("20 sec Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp


示例10: setAmPm

 static void
     setAmPm(DateFormatSymbols *syms, int32_t index,
     const UChar *value, int32_t valueLength, UErrorCode &errorCode)
 {
     setSymbol(syms->fAmPms, syms->fAmPmsCount, index, value, valueLength, errorCode);
 }
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:6,代码来源:udat.cpp


示例11: setLocalPatternChars

 static void
     setLocalPatternChars(DateFormatSymbols *syms,
     const UChar *value, int32_t valueLength, UErrorCode &errorCode)
 {
     setSymbol(&syms->fLocalPatternChars, 1, 0, value, valueLength, errorCode);
 }
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:6,代码来源:udat.cpp


示例12: setStandaloneShortQuarter

 static void
     setStandaloneShortQuarter(DateFormatSymbols *syms, int32_t index,
     const UChar *value, int32_t valueLength, UErrorCode &errorCode)
 {
     setSymbol(syms->fStandaloneShortQuarters, syms->fStandaloneShortQuartersCount, index, value, valueLength, errorCode);
 }
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:6,代码来源:udat.cpp


示例13: setStandaloneNarrowWeekday

 static void
     setStandaloneNarrowWeekday(DateFormatSymbols *syms, int32_t index,
     const UChar *value, int32_t valueLength, UErrorCode &errorCode)
 {
     setSymbol(syms->fStandaloneNarrowWeekdays, syms->fStandaloneNarrowWeekdaysCount, index, value, valueLength, errorCode);
 }
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:6,代码来源:udat.cpp


示例14: XPower

    XPower() : xpower(0.0), secs(0.0)
    {
        setSymbol("skiba_xpower");
#ifdef ENABLE_METRICS_TRANSLATION
        setInternalName("xPower");
    }
开发者ID:bodylinksystems,项目名称:GoldenCheetah,代码行数:6,代码来源:BikeScore.cpp


示例15: PeakPower10s

 PeakPower10s()
 {
     setSecs(10);
     setSymbol("10s_critical_power");
     setName(tr("10 sec Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp


示例16: PeakPower30s

 PeakPower30s()
 {
     setSecs(30);
     setSymbol("30s_critical_power");
     setName(tr("30 sec Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp


示例17: PeakPower15s

 PeakPower15s()
 {
     setSecs(15);
     setSymbol("15s_critical_power");
     setName(tr("15 sec Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp


示例18: PeakPower5m

 PeakPower5m()
 {
     setSecs(300);
     setSymbol("5m_critical_power");
     setName(tr("5 min Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp


示例19: LNP

 LNP() : lnp(0.0), secs(0.0)
 {
     setSymbol("govss_lnp");
     setInternalName("LNP");
 }
开发者ID:JanDeVisser,项目名称:GoldenCheetah,代码行数:5,代码来源:GOVSS.cpp


示例20: PeakPower10m

 PeakPower10m()
 {
     setSecs(600);
     setSymbol("10m_critical_power");
     setName(tr("10 min Peak Power"));
 }
开发者ID:iciclespider,项目名称:GoldenCheetah,代码行数:6,代码来源:PeakPower.cpp



注:本文中的setSymbol函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setTDRStyle函数代码示例发布时间:2022-05-30
下一篇:
C++ setSurfaceFlags函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap