VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:42:54 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38827
Message:

s/ELEMENTS/RT_ELEMENTS/g - retiring ELEMENTS (finally).

Location:
trunk/src/VBox/Runtime/common/string
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformatrt.cpp

    r11413 r13836  
    271271                const char *pszType = *ppszFormat - 1;
    272272                int         iStart  = 0;
    273                 int         iEnd    = ELEMENTS(s_aTypes) - 1;
    274                 int         i       = ELEMENTS(s_aTypes) / 2;
     273                int         iEnd    = RT_ELEMENTS(s_aTypes) - 1;
     274                int         i       = RT_ELEMENTS(s_aTypes) / 2;
    275275
    276276                union
     
    765765                const char *pszType = *ppszFormat - 1;
    766766                int         iStart  = 0;
    767                 int         iEnd    = ELEMENTS(s_aTypes) - 1;
    768                 int         i       = ELEMENTS(s_aTypes) / 2;
     767                int         iEnd    = RT_ELEMENTS(s_aTypes) - 1;
     768                int         i       = RT_ELEMENTS(s_aTypes) / 2;
    769769
    770770                union
  • trunk/src/VBox/Runtime/common/string/uniread.cpp

    r8245 r13836  
    361361
    362362        RTUNICP CodePoint = ToNum(pszCodePoint);
    363         if (CodePoint >= ELEMENTS(g_aCPInfo))
     363        if (CodePoint >= RT_ELEMENTS(g_aCPInfo))
    364364            continue;
    365365
     
    394394    }
    395395    /* catchup? */
    396     while (i < ELEMENTS(g_aCPInfo))
     396    while (i < RT_ELEMENTS(g_aCPInfo))
    397397        NullEntry(i++);
    398398    fclose(pFile);
     
    410410static void ApplyProperty(RTUNICP StartCP, const char *pszProperty)
    411411{
    412     if (StartCP >= ELEMENTS(g_aCPInfo))
     412    if (StartCP >= RT_ELEMENTS(g_aCPInfo))
    413413        return;
    414414    struct CPINFO *pCPInfo = &g_aCPInfo[StartCP];
     
    649649    RTUNICP i = 0;
    650650    int iStart = -1;
    651     while (i < ELEMENTS(g_aCPInfo))
     651    while (i < RT_ELEMENTS(g_aCPInfo))
    652652    {
    653653        /* figure how far off the next chunk is */
     
    655655        unsigned iNonNull = i;
    656656        while (     (g_aCPInfo[iNonNull].fNullEntry || !CalcFlags(&g_aCPInfo[iNonNull], szFlags))
    657                &&   iNonNull < ELEMENTS(g_aCPInfo)
     657               &&   iNonNull < RT_ELEMENTS(g_aCPInfo)
    658658               &&   iNonNull >= 256)
    659659            iNonNull++;
    660         if (iNonNull - i > 4096 || iNonNull == ELEMENTS(g_aCPInfo))
     660        if (iNonNull - i > 4096 || iNonNull == RT_ELEMENTS(g_aCPInfo))
    661661        {
    662662            if (iStart >= 0)
     
    698698    RTUNICP i = 0;
    699699    int iStart = -1;
    700     while (i < ELEMENTS(g_aCPInfo))
     700    while (i < RT_ELEMENTS(g_aCPInfo))
    701701    {
    702702        /* figure how far off the next chunk is */
    703703        unsigned iSameCase = i;
    704704        while (     g_aCPInfo[iSameCase].SimpleUpperCaseMapping == g_aCPInfo[iSameCase].CodePoint
    705                &&   iSameCase < ELEMENTS(g_aCPInfo)
     705               &&   iSameCase < RT_ELEMENTS(g_aCPInfo)
    706706               &&   iSameCase >= 256)
    707707            iSameCase++;
    708         if (iSameCase - i > 4096/sizeof(RTUNICP) || iSameCase == ELEMENTS(g_aCPInfo))
     708        if (iSameCase - i > 4096/sizeof(RTUNICP) || iSameCase == RT_ELEMENTS(g_aCPInfo))
    709709        {
    710710            if (iStart >= 0)
     
    745745    RTUNICP i = 0;
    746746    int iStart = -1;
    747     while (i < ELEMENTS(g_aCPInfo))
     747    while (i < RT_ELEMENTS(g_aCPInfo))
    748748    {
    749749        /* figure how far off the next chunk is */
    750750        unsigned iSameCase = i;
    751751        while (     g_aCPInfo[iSameCase].SimpleLowerCaseMapping == g_aCPInfo[iSameCase].CodePoint
    752                &&   iSameCase < ELEMENTS(g_aCPInfo)
     752               &&   iSameCase < RT_ELEMENTS(g_aCPInfo)
    753753               &&   iSameCase >= 256)
    754754            iSameCase++;
    755         if (iSameCase - i > 4096/sizeof(RTUNICP) || iSameCase == ELEMENTS(g_aCPInfo))
     755        if (iSameCase - i > 4096/sizeof(RTUNICP) || iSameCase == RT_ELEMENTS(g_aCPInfo))
    756756        {
    757757            if (iStart >= 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette