ICU-22608 Add necessary using statements for namespace icu.

This commit is contained in:
Fredrik Roubert 2023-12-15 00:22:43 +01:00 committed by Fredrik Roubert
parent 23dd2b8b54
commit daa0171501
26 changed files with 71 additions and 0 deletions

View file

@ -23,6 +23,9 @@
#include "GUISupport.h"
#include "FontMap.h"
using icu::LEFontInstance;
using icu::scriptCodeCount;
FontMap::FontMap(const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status)
: fPointSize(pointSize), fFontCount(0), fAscent(0), fDescent(0), fLeading(0), fGUISupport(guiSupport)
{

View file

@ -18,6 +18,9 @@
#include "GUISupport.h"
using icu::LEFontInstance;
using icu::scriptCodeCount;
#define BUFFER_SIZE 128
class FontMap

View file

@ -33,6 +33,8 @@
#include "sfnt.h"
#include "cmaps.h"
using icu::LEFontInstance;
GnomeSurface::GnomeSurface(GtkWidget *theWidget)
: fWidget(theWidget)
{

View file

@ -34,6 +34,8 @@
#include "FontTableCache.h"
#include "cmaps.h"
using icu::LEFontInstance;
class GnomeSurface : public RenderingSurface
{
public:

View file

@ -21,6 +21,8 @@
#include "FontMap.h"
#include "GnomeFontMap.h"
using icu::LEFontInstance;
GnomeFontMap::GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status)
: FontMap(fileName, pointSize, guiSupport, status), fEngine(engine)
{

View file

@ -23,6 +23,8 @@
#include "GUISupport.h"
#include "FontMap.h"
using icu::LEFontInstance;
#define BUFFER_SIZE 128
class GnomeFontMap : public FontMap

View file

@ -23,6 +23,8 @@
#include "layout/LETypes.h"
#include "layout/LEFontInstance.h"
using icu::LEFontInstance;
class RenderingSurface
{
public:

View file

@ -25,6 +25,9 @@
#include "ScriptCompositeFontInstance.h"
using icu::LEFontInstance;
using icu::scriptCodeCount;
const char ScriptCompositeFontInstance::fgClassID=0;
ScriptCompositeFontInstance::ScriptCompositeFontInstance(FontMap *fontMap)

View file

@ -16,6 +16,8 @@
#include "FontMap.h"
using icu::LEFontInstance;
// U_NAMESPACE_BEGIN
class ScriptCompositeFontInstance : public LEFontInstance

View file

@ -21,6 +21,8 @@
#include "GUISupport.h"
#include "UnicodeReader.h"
using icu::UnicodeString;
#define BYTE(b) (((int) b) & 0xFF)
/*

View file

@ -26,6 +26,8 @@
#define SWAPU16(code) ((LEUnicode16) SWAPW(code))
#define SWAPU32(code) ((LEUnicode32) SWAPL(code))
using icu::LESwaps;
//
// Finds the high bit by binary searching
// through the bits in value.

View file

@ -26,6 +26,8 @@
#include "ScriptCompositeFontInstance.h"
using icu::LEFontInstance;
U_CDECL_BEGIN
gs_guiSupport *gs_gnomeGuiSupportOpen()

View file

@ -14,6 +14,8 @@
#include "layout/LEFontInstance.h"
#include "RenderingSurface.h"
using icu::LEFontInstance;
U_CDECL_BEGIN
void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count,

View file

@ -18,6 +18,8 @@
#include "util.h"
#include "unaccent.h"
using icu::Transliterator;
int main(int argc, char **argv) {
Calendar *cal;

View file

@ -18,6 +18,8 @@
#include "util.h"
#include "unaccent.h"
using icu::Transliterator;
// RuleBasedTransliterator rules to remove accents from characters
// so they can be displayed as ASCIIx
UnicodeString UNACCENT_RULES(

View file

@ -18,6 +18,8 @@
#include "util.h"
#include "unaccent.h"
using icu::Transliterator;
// RuleBasedTransliterator rules to remove accents from characters
// so they can be displayed as ASCIIx
UnicodeString UNACCENT_RULES(

View file

@ -9,6 +9,10 @@
#include "unaccent.h"
using icu::Replaceable;
using icu::Transliterator;
using icu::UnicodeString;
/**
* Constructor
*/

View file

@ -11,6 +11,10 @@
#include "unicode/translit.h"
#include "unicode/normlzr.h"
using icu::Normalizer;
using icu::Replaceable;
using icu::Transliterator;
class UnaccentTransliterator : public Transliterator {
public:

View file

@ -13,6 +13,8 @@
#include "FontObject.h"
#include "layout/LESwaps.h"
using icu::LESwaps;
FontObject::FontObject(char *fileName)
: directory(nullptr), numTables(0), searchRange(0),entrySelector(0),
cmapTable(nullptr), cmSegCount(0), cmSearchRange(0), cmEntrySelector(0),

View file

@ -17,6 +17,8 @@
#include "FontObject.h"
#include "layout/LESwaps.h"
using icu::LESwaps;
FontObject::FontObject(char *fileName)
: directory(nullptr), numTables(0), searchRange(0),entrySelector(0),
cmapTable(nullptr), cmSegCount(0), cmSearchRange(0), cmEntrySelector(0),

View file

@ -26,6 +26,10 @@
#include "unicont.h"
#include "cmemory.h" // for UPRV_LENGTHOF
using icu::UObject;
using icu::UnicodeSet;
using icu::UnicodeSetIterator;
/*
* Hash table for up to 1k 64-bit words, for 1 bit per BMP code point.
* Hashes 64-bit words and maps them to 16-bit integers which are

View file

@ -24,6 +24,10 @@
#include "unicode/utypes.h"
#include "unicont.h"
using icu::UObject;
using icu::UnicodeSet;
using icu::UnicodeSetIterator;
#define UTRIE_GET8_LATIN1(trie) ((const uint8_t *)(trie)->data32+UTRIE_DATA_BLOCK_LENGTH)
#define UTRIE_GET8_FROM_LEAD(trie, c16) \

View file

@ -20,6 +20,12 @@
#include "unicode/uniset.h"
#include "unicode/ustring.h"
using icu::BreakIterator;
using icu::Locale;
using icu::UCharCharacterIterator;
using icu::UnicodeSet;
using icu::UnicodeString;
/*
* This program takes a Unicode text file containing Thai text with
* spaces inserted where the word breaks are. It computes a copy of

View file

@ -6,6 +6,9 @@
#include "unicode/uniset.h"
#include <stdio.h>
using icu::LocalUConverterPointer;
using icu::UnicodeSet;
static const char *kConverter = "ibm-1047";
int main(int argc, const char *argv[]) {

View file

@ -14,6 +14,10 @@
#include "collationroot.h"
#include "collationtailoring.h"
using icu::CollationCacheEntry;
using icu::CollationRoot;
using icu::UnicodeSet;
/**
* Define the type of generator to use. Choose one.
*/

View file

@ -15,6 +15,9 @@
#include "collunsafe.h"
using icu::Collator;
using icu::Locale;
using icu::UnicodeSet;
int main(int argc, const char *argv[]) {
puts("verify");