CWS-TOOLING: integrate CWS cmcfixes55
2009-03-03 10:04:14 +0100 cmc r268711 : #i99765# silence warning 2009-03-02 12:18:48 +0100 cmc r268647 : #i99772# silence warnings under >= python 2.6 and gcc 4.4 2009-03-02 10:51:12 +0100 cmc r268641 : #i99767# fix up trivial && || 2009-03-02 10:32:02 +0100 cmc r268640 : #i99766 remove && || warning 2009-03-02 10:01:05 +0100 cmc r268638 : #i99764# easy && || warnings 2009-02-27 13:03:08 +0100 cmc r268583 : #i96059# fix dodgy code 2009-02-27 12:57:38 +0100 cmc r268582 : #i99718# don't leave unused methods on non-win platform
This commit is contained in:
@@ -122,19 +122,19 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661
|
||||
8. <cons> <thanthakhat> + <abv1> => <cons> <abv1> <thanthakhat> (reorder)
|
||||
9. <cons> <abv1>_x <thanthakhat> + <abv1>_y => <cons> <abv1>_y <thanthakhat>(reorder, replace)
|
||||
*/
|
||||
#define CT_ABV(t) (t>=CT_AV1 && t<=CT_AV3 || t==CT_BV1 || t==CT_BV2)
|
||||
#define CT_ABV(t) ( (t>=CT_AV1 && t<=CT_AV3) || t==CT_BV1 || t==CT_BV2)
|
||||
#define CT_ABV1(t) (t==CT_AV1 || t==CT_BV1)
|
||||
|
||||
if (check(Text[nStartPos], inputChar, inputCheckMode))
|
||||
Text = Text.replaceAt(++nStartPos, 0, OUString(inputChar));
|
||||
else if (nStartPos > 0 && getCharType(Text[nStartPos-1]) == CT_CONS) {
|
||||
sal_uInt16 t1=getCharType(Text[nStartPos]), t2=getCharType(inputChar);
|
||||
if (CT_ABV(t1) && CT_ABV(t2) || // 1.
|
||||
t1==CT_TONE && t2==CT_TONE) // 2.
|
||||
if ( (CT_ABV(t1) && CT_ABV(t2)) || // 1.
|
||||
(t1==CT_TONE && t2==CT_TONE) )// 2.
|
||||
Text = Text.replaceAt(nStartPos, 1, OUString(inputChar));
|
||||
else if (t1==CT_TONE && CT_ABV(t2) || // 5.
|
||||
t1==CT_FV1 && t2==CT_TONE || // 6.
|
||||
Text[nStartPos]==0x0E4C && CT_ABV1(t2)) // 8.
|
||||
else if ( (t1==CT_TONE && CT_ABV(t2)) || // 5.
|
||||
(t1==CT_FV1 && t2==CT_TONE) || // 6.
|
||||
(Text[nStartPos]==0x0E4C && CT_ABV1(t2)) ) // 8.
|
||||
Text = Text.replaceAt(nStartPos++, 0, OUString(inputChar));
|
||||
else
|
||||
nStartPos=Text.getLength();
|
||||
@@ -142,9 +142,9 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661
|
||||
sal_uInt16 t1=getCharType(Text[nStartPos-1]), t2=getCharType(Text[nStartPos]), t3=getCharType(inputChar);
|
||||
if (CT_ABV(t1) && t2==CT_TONE && t3==CT_TONE) // 3.
|
||||
Text = Text.replaceAt(nStartPos, 1, OUString(inputChar));
|
||||
else if (CT_ABV(t1) && t2==CT_TONE && CT_ABV(t3) || // 4.
|
||||
t1==CT_TONE && t2==CT_FV1 && t3==CT_TONE || // 7.
|
||||
CT_ABV1(t1) && Text[nStartPos]==0x0E4C && CT_ABV1(t3)) // 9.
|
||||
else if ( (CT_ABV(t1) && t2==CT_TONE && CT_ABV(t3)) || // 4.
|
||||
(t1==CT_TONE && t2==CT_FV1 && t3==CT_TONE) || // 7.
|
||||
(CT_ABV1(t1) && Text[nStartPos]==0x0E4C && CT_ABV1(t3)) ) // 9.
|
||||
Text = Text.replaceAt(nStartPos-1, 1, OUString(inputChar));
|
||||
else
|
||||
nStartPos=Text.getLength();
|
||||
|
@@ -46,7 +46,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
|
||||
// see http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F)
|
||||
// see http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF)
|
||||
static sal_Unicode toKatakana (const sal_Unicode c) {
|
||||
if (0x3041 <= c && c <= 0x3096 || 0x309d <= c && c <= 0x309f) { // 3040 - 309F HIRAGANA LETTER
|
||||
if ( (0x3041 <= c && c <= 0x3096) || (0x309d <= c && c <= 0x309f) ) { // 3040 - 309F HIRAGANA LETTER
|
||||
// shift code point by 0x0060
|
||||
return c + (0x30a0 - 0x3040);
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
|
||||
// see http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF)
|
||||
static sal_Unicode toHiragana (const sal_Unicode c)
|
||||
{
|
||||
if (0x30a1 <= c && c <= 0x30f6 || 0x30fd <= c && c <= 0x30ff) { // 30A0 - 30FF KATAKANA LETTER
|
||||
if ( (0x30a1 <= c && c <= 0x30f6) || (0x30fd <= c && c <= 0x30ff) ) { // 30A0 - 30FF KATAKANA LETTER
|
||||
// shift code point by 0x0060
|
||||
return c - (0x30a0 - 0x3040);
|
||||
}
|
||||
|
@@ -165,15 +165,15 @@ void Export::QuotHTMLXRM( ByteString &rString )
|
||||
switch ( rString.GetChar( i )) {
|
||||
case '<':
|
||||
if( i+2 < rString.Len() &&
|
||||
rString.GetChar( i+1 ) == 'b' || rString.GetChar( i+1 ) == 'B' &&
|
||||
rString.GetChar( +2 ) == '>' )
|
||||
(rString.GetChar( i+1 ) == 'b' || rString.GetChar( i+1 ) == 'B') &&
|
||||
rString.GetChar( i+2 ) == '>' )
|
||||
{
|
||||
sReturn +="<b>";
|
||||
i += 2;
|
||||
}
|
||||
else if( i+3 < rString.Len() &&
|
||||
rString.GetChar( i+1 ) == '/' &&
|
||||
rString.GetChar( i+2 ) == 'b' || rString.GetChar( i+2 ) == 'B' &&
|
||||
(rString.GetChar( i+2 ) == 'b' || rString.GetChar( i+2 ) == 'B') &&
|
||||
rString.GetChar( i+3 ) == '>' )
|
||||
{
|
||||
sReturn +="</b>";
|
||||
|
@@ -709,7 +709,7 @@ sal_Bool UCBContentHelper::Find( const String& rFolder, const String& rName, Str
|
||||
INetURLObject aFileObject( pFiles[i] );
|
||||
String aFile = aFileObject.getName(
|
||||
INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ).toAsciiLowerCase();
|
||||
if ( bWild && WildCard( rName ).Matches( aFile ) || aFile == rName )
|
||||
if ( (bWild && WildCard( rName ).Matches( aFile )) || aFile == rName )
|
||||
{
|
||||
// names match
|
||||
rFile = aFileObject.GetMainURL( INetURLObject::NO_DECODE );
|
||||
|
Reference in New Issue
Block a user