File tree 2 files changed +6
-15
lines changed
2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -2251,7 +2251,7 @@ bool IsFileNameValid(const char *fileName)
2251
2251
2252
2252
if ((fileName != NULL ) && (fileName [0 ] != '\0' ))
2253
2253
{
2254
- int length = strlen (fileName );
2254
+ int length = ( int ) strlen (fileName );
2255
2255
bool allPeriods = true;
2256
2256
2257
2257
for (int i = 0 ; i < length ; i ++ )
Original file line number Diff line number Diff line change @@ -1807,10 +1807,7 @@ const char *TextToSnake(const char *text)
1807
1807
}
1808
1808
buffer [i ] = text [j ] + 32 ;
1809
1809
}
1810
- else
1811
- {
1812
- buffer [i ] = text [j ];
1813
- }
1810
+ else buffer [i ] = text [j ];
1814
1811
}
1815
1812
}
1816
1813
@@ -1827,23 +1824,17 @@ const char *TextToCamel(const char *text)
1827
1824
if (text != NULL )
1828
1825
{
1829
1826
// Lower case first character
1830
- if ((text [0 ] >= 'A' ) && (text [0 ] <= 'Z' ))
1831
- buffer [0 ] = text [0 ] + 32 ;
1832
- else
1833
- buffer [0 ] = text [0 ];
1827
+ if ((text [0 ] >= 'A' ) && (text [0 ] <= 'Z' )) buffer [0 ] = text [0 ] + 32 ;
1828
+ else buffer [0 ] = text [0 ];
1834
1829
1835
1830
// Check for next separator to upper case another character
1836
1831
for (int i = 1 , j = 1 ; (i < MAX_TEXT_BUFFER_LENGTH - 1 ) && (text [j ] != '\0' ); i ++ , j ++ )
1837
1832
{
1838
- if (text [j ] != '_' )
1839
- buffer [i ] = text [j ];
1833
+ if (text [j ] != '_' ) buffer [i ] = text [j ];
1840
1834
else
1841
1835
{
1842
1836
j ++ ;
1843
- if ((text [j ] >= 'a' ) && (text [j ] <= 'z' ))
1844
- {
1845
- buffer [i ] = text [j ] - 32 ;
1846
- }
1837
+ if ((text [j ] >= 'a' ) && (text [j ] <= 'z' )) buffer [i ] = text [j ] - 32 ;
1847
1838
}
1848
1839
}
1849
1840
}
You can’t perform that action at this time.
0 commit comments