loplugin:salunicodeliteral: i18npool
Change-Id: I7307cc96eac5868ed26e8ace1fc3c1a93e1bfec4
This commit is contained in:
@@ -380,7 +380,7 @@ void TestBreakIterator::testWordBoundaries()
|
||||
}
|
||||
|
||||
const sal_Int32 aSingleQuotePositions[] = {0, 1, 9, 10};
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Unicode>('\''), aTests[0]);
|
||||
CPPUNIT_ASSERT_EQUAL(u'\'', aTests[0]);
|
||||
{
|
||||
OUString aTest = aBase.replaceAll("xx", OUStringLiteral1(aTests[0]));
|
||||
sal_Int32 nPos = -1;
|
||||
|
||||
@@ -413,7 +413,7 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult )
|
||||
if ((nDigit = nPart % 100) < 20)
|
||||
{
|
||||
if (!aTemp.isEmpty())
|
||||
aTemp.insert( 0, sal_Unicode(0x0020));
|
||||
aTemp.insert( 0, u' ');
|
||||
aTemp.insert( 0, table_PersianWord_decade1[nDigit]);
|
||||
}
|
||||
else
|
||||
@@ -449,10 +449,10 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult )
|
||||
// Greek Letter Numbering
|
||||
|
||||
// KERAIA separates numerals from other text
|
||||
#define STIGMA (sal_Unicode) 0x03DB
|
||||
#define LEFT_KERAIA (sal_Unicode) 0x0375
|
||||
#define MYRIAD_SYM (sal_Unicode) 0x039C
|
||||
#define DOT_SYM (sal_Unicode) 0x002E
|
||||
#define STIGMA u'\x03DB'
|
||||
#define LEFT_KERAIA u'\x0375'
|
||||
#define MYRIAD_SYM u'\x039C'
|
||||
#define DOT_SYM u'.'
|
||||
#define SIGMA_OFFSET 19
|
||||
#define TAU_OFFSET 20
|
||||
#define MYRIAD 10000
|
||||
|
||||
@@ -187,7 +187,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
|
||||
continue;
|
||||
|
||||
switch(curr) {
|
||||
case sal_Unicode('-'):
|
||||
case u'-':
|
||||
if (key_count > 0 && i + 1 < len ) {
|
||||
for (curr = keyStr[++i]; key_count < MAX_KEYS && keys[key_count-1].key < curr; key_count++) {
|
||||
keys[key_count].key = keys[key_count-1].key+1;
|
||||
@@ -196,7 +196,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
|
||||
} else
|
||||
throw RuntimeException();
|
||||
break;
|
||||
case sal_Unicode('['):
|
||||
case u'[':
|
||||
for (i++; i < len && keyStr[i] != ']'; i++) {
|
||||
if (unicode::isWhiteSpace(keyStr[i])) {
|
||||
continue;
|
||||
@@ -209,10 +209,10 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
|
||||
}
|
||||
}
|
||||
break;
|
||||
case sal_Unicode('{'):
|
||||
case u'{':
|
||||
close = '}';
|
||||
SAL_FALLTHROUGH;
|
||||
case sal_Unicode('('):
|
||||
case u'(':
|
||||
if (key_count > 0) {
|
||||
sal_Int16 end = i+1;
|
||||
for (; end < len && keyStr[end] != close; end++) ;
|
||||
|
||||
@@ -120,7 +120,7 @@ ignoreIandEfollowedByYa_ja_JP::folding( const OUString& inStr, sal_Int32 startPo
|
||||
*dst ++ = previousChar;
|
||||
}
|
||||
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
newStr->length = sal_Int32(dst - newStr->buffer);
|
||||
if (useOffset)
|
||||
|
||||
@@ -130,7 +130,7 @@ ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, s
|
||||
*dst ++ = previousChar;
|
||||
}
|
||||
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
newStr->length = sal_Int32(dst - newStr->buffer);
|
||||
if (useOffset)
|
||||
|
||||
@@ -78,7 +78,7 @@ ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos
|
||||
*dst ++ = previousChar;
|
||||
}
|
||||
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
newStr->length = sal_Int32(dst - newStr->buffer);
|
||||
if (useOffset)
|
||||
|
||||
@@ -336,7 +336,7 @@ ignoreProlongedSoundMark_ja_JP::folding( const OUString& inStr, sal_Int32 startP
|
||||
*dst ++ = previousChar;
|
||||
}
|
||||
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
newStr->length = sal_Int32(dst - newStr->buffer);
|
||||
if (useOffset)
|
||||
|
||||
@@ -190,7 +190,7 @@ transliteration_Ignore::folding( const OUString& inStr, sal_Int32 startPos,
|
||||
newStr->length = sal_Int32(dst - newStr->buffer);
|
||||
if (useOffset)
|
||||
offset.realloc(newStr->length);
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
return OUString(newStr, SAL_NO_ACQUIRE); // take ownership
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ transliteration_OneToOne::transliterate( const OUString& inStr, sal_Int32 startP
|
||||
if (useOffset)
|
||||
*p ++ = position ++;
|
||||
}
|
||||
*dst = (sal_Unicode) 0;
|
||||
*dst = u'\0';
|
||||
|
||||
return OUString(newStr, SAL_NO_ACQUIRE); // take ownership
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user