示例#1
0
文件: port.hpp 项目: JianwenSun/cc
 static
 PrintPort(
     void
 )
 {
     attributeNameTypes = gcnew Hashtable();
 }
示例#2
0
 static 
 PrintProcessor(
     void
     )
 {
     attributeNameTypes = gcnew Hashtable();
 }
示例#3
0
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);
    }
}
示例#4
0
#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;
}