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

Function lStr_lowercase

crengine/src/lvstring.cpp:1922–1945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1920}
1921
1922void lStr_lowercase( lChar16 * str, int len )
1923{
1924 for ( int i=0; i<len; i++ ) {
1925 lChar16 ch = str[i];
1926 if ( ch>='A' && ch<='Z' ) {
1927 str[i] = ch + 0x20;
1928 } else if ( ch>=0xC0 && ch<=0xDF ) {
1929 str[i] = ch + 0x20;
1930 } else if ( ch>=0x410 && ch<=0x42F ) {
1931 str[i] = ch + 0x20;
1932 } else if ( ch>=0x390 && ch<=0x3aF ) {
1933 str[i] = ch + 0x20;
1934 } else if ( (ch >> 8)==0x1F ) { // greek
1935 lChar16 n = ch & 255;
1936 if (n<0x70) {
1937 str[i] = ch & (~8);
1938 } else if (n<0x80) {
1939
1940 } else if (n<0xF0) {
1941 str[i] = ch & (~8);
1942 }
1943 }
1944 }
1945}
1946
1947void lString16Collection::parse( lString16 string, lChar16 delimiter, bool flgTrim )
1948{

Callers 2

hyphenateMethod · 0.85
lvstring.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected