summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-02-12 12:55:00 +0200
committerTor Lillqvist <tml@collabora.com>2017-02-12 12:57:32 +0200
commit6d15d4a6f6fbc163001ec082d55404481e64bed1 (patch)
treea4e137c06b189aea468e0e46e938ffd8ed4ea84c /vcl
parentce1fec5f5d23676e2a02dde062f9b678d4d1dfd0 (diff)
Get rid of "unicodes" in lower-case, too
Instead, use "code points" (if you mean full 21-bit Unicode code points), or "code units" (if you mean the 16-bit units that make up UTF-16). Hopefully I got it right which one was meant in each case here. Change-Id: I8ee7a98996f1cebcfb95cd7d18a56570e48fa390
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salframeview.mm2
-rw-r--r--vcl/source/font/fontcharmap.cxx4
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/outdev/font.cxx4
-rw-r--r--vcl/unx/generic/fontmanager/fontconfig.cxx18
5 files changed, 15 insertions, 15 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 1b16485edcff..15d5733cd882 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -1550,7 +1550,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
}
if( nKeyCode != 0 )
{
- // don't send unicodes in the private use area
+ // don't send code points in the private use area
if( keyChar >= 0xf700 && keyChar < 0xf780 )
keyChar = 0;
BOOL bRet = [self sendKeyToFrameDirect: nKeyCode character: keyChar modifiers: mpFrame->mnLastModifierFlags];
diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx
index fa0fb5b494a0..f30c4e670242 100644
--- a/vcl/source/font/fontcharmap.cxx
+++ b/vcl/source/font/fontcharmap.cxx
@@ -287,7 +287,7 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult )
if( aConverter && aCvtContext )
{
- // determine the set of supported unicodes from encoded ranges
+ // determine the set of supported code points from encoded ranges
std::set<sal_UCS4> aSupportedCodePoints;
static const int NINSIZE = 64;
@@ -327,7 +327,7 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult )
rtl_destroyTextToUnicodeConverter( aCvtContext );
rtl_destroyTextToUnicodeConverter( aConverter );
- // convert the set of supported unicodes to ranges
+ // convert the set of supported code points to ranges
std::vector<sal_UCS4> aSupportedRanges;
std::set<sal_UCS4>::const_iterator itChar = aSupportedCodePoints.begin();
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index dce47529fa69..13bd2fe561f9 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -3097,7 +3097,7 @@ sal_Int32 PDFWriterImpl::createToUnicodeCMap( sal_uInt8* pEncoding,
aContents.append( '<' );
appendHex( (sal_Int8)pEncoding[n], aContents );
aContents.append( "> <" );
- // TODO: handle unicodes>U+FFFF
+ // TODO: handle code points>U+FFFF
sal_Int32 nIndex = pEncToUnicodeIndex[n];
for( sal_Int32 j = 0; j < pCodeUnitsPerGlyph[n]; j++ )
{
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index cea5665cc6ac..1c04f0520489 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1377,7 +1377,7 @@ SalLayout* OutputDevice::ImplGlyphFallbackLayout( SalLayout* pSalLayout, ImplLay
rLayoutArgs.PrepareFallback();
rLayoutArgs.mnFlags |= SalLayoutFlags::ForFallback;
- // get list of unicodes that need glyph fallback
+ // get list of code units that need glyph fallback
int nCharPos = -1;
bool bRTL = false;
OUStringBuffer aMissingCodeBuf;
@@ -1388,7 +1388,7 @@ SalLayout* OutputDevice::ImplGlyphFallbackLayout( SalLayout* pSalLayout, ImplLay
FontSelectPattern aFontSelData = mpFontInstance->maFontSelData;
- // try if fallback fonts support the missing unicodes
+ // try if fallback fonts support the missing code units
for( int nFallbackLevel = 1; nFallbackLevel < MAX_FALLBACK; ++nFallbackLevel )
{
// find a font family suited for glyph fallback
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 9a58e91037a4..120a116bcfb4 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -948,12 +948,12 @@ void PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
// Add required Unicode characters, if any
if ( !rMissingCodes.isEmpty() )
{
- FcCharSet *unicodes = FcCharSetCreate();
+ FcCharSet *codePoints = FcCharSetCreate();
for( sal_Int32 nStrIndex = 0; nStrIndex < rMissingCodes.getLength(); )
{
// also handle unicode surrogates
const sal_uInt32 nCode = rMissingCodes.iterateCodePoints( &nStrIndex );
- FcCharSetAddChar( unicodes, nCode );
+ FcCharSetAddChar( codePoints, nCode );
//if the codepoint is impossible for this lang tag, then clear it
//and autodetect something useful
if (!aLangAttrib.isEmpty() && isImpossibleCodePointForLang(aLangTag, nCode))
@@ -965,8 +965,8 @@ void PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
aLangAttrib = mapToFontConfigLangTag(aLangTag);
}
}
- FcPatternAddCharSet(pPattern, FC_CHARSET, unicodes);
- FcCharSetDestroy(unicodes);
+ FcPatternAddCharSet(pPattern, FC_CHARSET, codePoints);
+ FcCharSetDestroy(codePoints);
}
if (!aLangAttrib.isEmpty())
@@ -1065,19 +1065,19 @@ void PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
}
}
- // update rMissingCodes by removing resolved unicodes
+ // update rMissingCodes by removing resolved code points
if( !rMissingCodes.isEmpty() )
{
std::unique_ptr<sal_uInt32[]> const pRemainingCodes(new sal_uInt32[rMissingCodes.getLength()]);
int nRemainingLen = 0;
- FcCharSet* unicodes;
- if (!FcPatternGetCharSet(pSet->fonts[0], FC_CHARSET, 0, &unicodes))
+ FcCharSet* codePoints;
+ if (!FcPatternGetCharSet(pSet->fonts[0], FC_CHARSET, 0, &codePoints))
{
for( sal_Int32 nStrIndex = 0; nStrIndex < rMissingCodes.getLength(); )
{
- // also handle unicode surrogates
+ // also handle surrogates
const sal_uInt32 nCode = rMissingCodes.iterateCodePoints( &nStrIndex );
- if (FcCharSetHasChar(unicodes, nCode) != FcTrue)
+ if (FcCharSetHasChar(codePoints, nCode) != FcTrue)
pRemainingCodes[ nRemainingLen++ ] = nCode;
}
}