MCPcopy Create free account
hub / github.com/buggins/coolreader / lStr_uppercase

Function lStr_uppercase

crengine/src/lvstring.cpp:1897–1920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1895}
1896
1897void lStr_uppercase( lChar16 * str, int len )
1898{
1899 for ( int i=0; i<len; i++ ) {
1900 lChar16 ch = str[i];
1901 if ( ch>='a' && ch<='z' ) {
1902 str[i] = ch - 0x20;
1903 } else if ( ch>=0xE0 && ch<=0xFF ) {
1904 str[i] = ch - 0x20;
1905 } else if ( ch>=0x430 && ch<=0x44F ) {
1906 str[i] = ch - 0x20;
1907 } else if ( ch>=0x3b0 && ch<=0x3cF ) {
1908 str[i] = ch - 0x20;
1909 } else if ( (ch >> 8)==0x1F ) { // greek
1910 lChar16 n = ch & 255;
1911 if (n<0x70) {
1912 str[i] = ch | 8;
1913 } else if (n<0x80) {
1914
1915 } else if (n<0xF0) {
1916 str[i] = ch | 8;
1917 }
1918 }
1919 }
1920}
1921
1922void lStr_lowercase( lChar16 * str, int len )
1923{

Callers 1

lvstring.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected