comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d @ 113:fb3aa8075988

D2 support for the linux port.
author Jacob Carlborg <doob@me.com>
date Wed, 06 Apr 2011 21:57:23 +0200
parents c01d033c633a
children 536e43f63c81
comparison
equal deleted inserted replaced
112:9f4c18c268b2 113:fb3aa8075988
908 return offset; 908 return offset;
909 if( offset >= textStore.length ){ 909 if( offset >= textStore.length ){
910 return offset; 910 return offset;
911 } 911 }
912 if (!gapExists() || (offset < gapStart)){ 912 if (!gapExists() || (offset < gapStart)){
913 while( textStore[offset] & 0xC0 is 0x80 ){ 913 while( (textStore[offset] & 0xC0) is 0x80 ){
914 offset--; 914 offset--;
915 } 915 }
916 return offset; 916 return offset;
917 } 917 }
918 int gapLength= gapEnd - gapStart; 918 int gapLength= gapEnd - gapStart;
919 if( offset+gapLength >= textStore.length ){ 919 if( offset+gapLength >= textStore.length ){
920 return offset; 920 return offset;
921 } 921 }
922 while( textStore[offset+gapLength] & 0xC0 is 0x80 ){ 922 while( (textStore[offset+gapLength] & 0xC0) is 0x80 ){
923 offset--; 923 offset--;
924 } 924 }
925 return offset; 925 return offset;
926 } 926 }
927 927