Changeset 7674:62dc4bd6f9b1 in orange


Ignore:
Timestamp:
02/14/11 23:06:05 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
eee8bac6cd3831141f36987e68e090944ddba6a8
Message:

Fixed a few camelCase -> underscore issues

Location:
source/orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orange/_aliases.txt

    r7654 r7674  
    1515 
    1616EquiDistDiscretizer 
    17 firstVal firstCut 
    1817firstVal first_cut 
    1918 
  • source/orange/cls_orange.cpp

    r7654 r7674  
    292292    while(*ci) { // just copied 
    293293        if (   (*ci >= 'a') && (*ci <= 'z')       // a small letter 
    294             && (ci[1] >= 'A') && (ci[1] <= 'Z')   // followed by capital 
    295             && ((ci[2] < 'A') || (ci[2] > 'Z'))) { // not followed by capital  
     294            && (ci[1] >= 'A') && (ci[1] <= 'Z')) {  // followed by capital 
    296295            *++ui = '_'; 
    297             *++ui = *++ci + 32; 
     296            const char of = (ci[2] < 'A') || (ci[2] > 'Z') ? 32 : 0; // 32, if not followed by capital  
     297            *++ui = *++ci + of; 
    298298            changed = true; 
    299299        } 
Note: See TracChangeset for help on using the changeset viewer.