static PrintPort( void ) { attributeNameTypes = gcnew Hashtable(); }
static PrintProcessor( void ) { attributeNameTypes = gcnew Hashtable(); }
UnicodeTest::UnicodeTest() { UErrorCode errorCode=U_ZERO_ERROR; unknownPropertyNames=new U_NAMESPACE_QUALIFIER Hashtable(errorCode); if(U_FAILURE(errorCode)) { delete unknownPropertyNames; unknownPropertyNames=NULL; } // Ignore some property names altogether. for(int32_t i=0; i<LENGTHOF(ignorePropNames); ++i) { unknownPropertyNames->puti(UnicodeString(ignorePropNames[i], -1, US_INV), 1, errorCode); } }
#include "hashtable.hpp" #include "symbole.hpp" Hashtable Symbole::hash = Hashtable(); Symbole::Symbole(wchar_t *name) : e(hash.Add(name)) { } void Symbole::SetValue(unsigned int n) { e->value = n; e->init = true; } unsigned int Symbole::GetValue() { return e->value; } wchar_t* Symbole::GetText() { return e->name; } bool Symbole::GetInit() { return e->init; }