mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-22608 Add necessary using statements for namespace icu.
This commit is contained in:
parent
23dd2b8b54
commit
daa0171501
26 changed files with 71 additions and 0 deletions
icu4c/source
samples
layout
FontMap.cppFontMap.hGnomeFontInstance.cppGnomeFontInstance.hGnomeFontMap.cppGnomeFontMap.hRenderingSurface.hScriptCompositeFontInstance.cppScriptCompositeFontInstance.hUnicodeReader.cppcmaps.cppgnomeglue.cpprsurface.cpp
translit/answers
test
letest
perf
thaitest
tools
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
|
||||
#include "GUISupport.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
using icu::scriptCodeCount;
|
||||
|
||||
#define BUFFER_SIZE 128
|
||||
|
||||
class FontMap
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#include "sfnt.h"
|
||||
#include "cmaps.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
GnomeSurface::GnomeSurface(GtkWidget *theWidget)
|
||||
: fWidget(theWidget)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
#include "FontTableCache.h"
|
||||
#include "cmaps.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
class GnomeSurface : public RenderingSurface
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "GUISupport.h"
|
||||
#include "FontMap.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
#define BUFFER_SIZE 128
|
||||
|
||||
class GnomeFontMap : public FontMap
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "layout/LETypes.h"
|
||||
#include "layout/LEFontInstance.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
class RenderingSurface
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
|
||||
#include "ScriptCompositeFontInstance.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
using icu::scriptCodeCount;
|
||||
|
||||
const char ScriptCompositeFontInstance::fgClassID=0;
|
||||
|
||||
ScriptCompositeFontInstance::ScriptCompositeFontInstance(FontMap *fontMap)
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include "FontMap.h"
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
// U_NAMESPACE_BEGIN
|
||||
|
||||
class ScriptCompositeFontInstance : public LEFontInstance
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "GUISupport.h"
|
||||
#include "UnicodeReader.h"
|
||||
|
||||
using icu::UnicodeString;
|
||||
|
||||
#define BYTE(b) (((int) b) & 0xFF)
|
||||
|
||||
/*
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "ScriptCompositeFontInstance.h"
|
||||
|
||||
|
||||
using icu::LEFontInstance;
|
||||
|
||||
U_CDECL_BEGIN
|
||||
|
||||
gs_guiSupport *gs_gnomeGuiSupportOpen()
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include "util.h"
|
||||
#include "unaccent.h"
|
||||
|
||||
using icu::Transliterator;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
Calendar *cal;
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
|
||||
#include "unaccent.h"
|
||||
|
||||
using icu::Replaceable;
|
||||
using icu::Transliterator;
|
||||
using icu::UnicodeString;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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[]) {
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue