예제 #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;
}