static void* _c0;
static void* _c1;
static void* _c2;
static void* _c3;
static void* _c4;
static void* _c5;
static void* _c6;
static void* _c7;
static void* _c8;
#include <URI/Authority/ServerBased.oh>
#include <IntStr.oh>
#include <CharClass.oh>
#include <URI/CharClass.oh>
#include <URI/String.oh>
#define URI_Authority_ServerBased__defaultPort (-1)
static void URI_Authority_ServerBased__ParseHost(Object__CharsLatin1 str, OOC_INT16 offset);

/* run-time meta data */
static RT0__ModuleDesc _mid;
RT0__StructDesc _td_URI_Authority_ServerBased__Authority = { (RT0__Struct[]){&_td_URI_Authority_ServerBased__AuthorityDesc}, NULL, NULL, &_mid, (OOC_CHAR8*)"Authority", 4, -1, 0, RT0__strPointer };
RT0__StructDesc _td_URI_Authority_ServerBased__AuthorityDesc = { (RT0__Struct[]){&_td_URI__AuthorityDesc,&_td_URI_Authority_ServerBased__AuthorityDesc}, (void*[]){(void*)URI_Authority_ServerBased__AuthorityDesc_Clone,(void*)URI_Authority_ServerBased__AuthorityDesc_Copy,(void*)URI_Authority_ServerBased__AuthorityDesc_ParseAuthority,(void*)URI_Authority_ServerBased__AuthorityDesc_WriteXML,(void*)URI_Authority_ServerBased__AuthorityDesc_Append}, NULL, &_mid, (OOC_CHAR8*)"AuthorityDesc", 16, 1, 0, RT0__strRecord };
RT0__StructDesc _td_URI_Authority_ServerBased__8110 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 32, 32, (1<<RT0__flagAtomic), RT0__strArray };
RT0__StructDesc _td_URI_Authority_ServerBased__8798 = { (RT0__Struct[]){&RT0__char}, NULL, NULL, &_mid, NULL, 32, 32, (1<<RT0__flagAtomic), RT0__strArray };
static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"URI:Authority:ServerBased", (RT0__Struct[]) { &_td_URI_Authority_ServerBased__Authority, &_td_URI_Authority_ServerBased__AuthorityDesc, NULL }, 0 };

extern void OOC_URI_Authority_ServerBased_open(RT0__Module client) {
  if (_mid.openCount == 0) {
    OOC_IntStr_open(&_mid);
    OOC_TextRider_open(&_mid);
    OOC_CharClass_open(&_mid);
    OOC_Object_open(&_mid);
    OOC_Exception_open(&_mid);
    OOC_ADT_StringBuffer_open(&_mid);
    OOC_URI_open(&_mid);
    OOC_URI_CharClass_open(&_mid);
    OOC_URI_String_open(&_mid);
    OOC_RT0_open(&_mid);
    OOC_Object_open(&_mid);
    OOC_Exception_open(&_mid);

    RT0__RegisterModule(&_mid);
    OOC_URI_Authority_ServerBased_init();
  }
  _mid.openCount++;
}
extern void OOC_URI_Authority_ServerBased_close(RT0__Module client) {
  _mid.openCount--;
  if (_mid.openCount == 0) { 
    OOC_URI_Authority_ServerBased_destroy();
    RT0__UnregisterModule(&_mid);

    OOC_IntStr_close(&_mid);
    OOC_TextRider_close(&_mid);
    OOC_CharClass_close(&_mid);
    OOC_Object_close(&_mid);
    OOC_Exception_close(&_mid);
    OOC_ADT_StringBuffer_close(&_mid);
    OOC_URI_close(&_mid);
    OOC_URI_CharClass_close(&_mid);
    OOC_URI_String_close(&_mid);
    OOC_RT0_close(&_mid);
    OOC_Object_close(&_mid);
    OOC_Exception_close(&_mid);
  }
}

/* --- */
