예제 #1
0
 private void defineAliases() {
   HashEntryIterator hei = aliases.entryIterator();
   while (hei.hasNext()) {
     CaseInsensitiveBytesHash.CaseInsensitiveBytesHashEntry<Entry> e =
         ((CaseInsensitiveBytesHash.CaseInsensitiveBytesHashEntry<Entry>) hei.next());
     Entry ee = e.value;
     RubyEncoding encoding = (RubyEncoding) encodingList[ee.getIndex()];
     defineEncodingConstants(runtime, encoding, e.bytes, e.p, e.end);
   }
 }
예제 #2
0
 private void defineEncodings() {
   HashEntryIterator hei = encodings.entryIterator();
   while (hei.hasNext()) {
     CaseInsensitiveBytesHash.CaseInsensitiveBytesHashEntry<Entry> e =
         ((CaseInsensitiveBytesHash.CaseInsensitiveBytesHashEntry<Entry>) hei.next());
     Entry ee = e.value;
     RubyEncoding encoding = RubyEncoding.newEncoding(runtime, e.bytes, e.p, e.end, ee.isDummy());
     encodingList[ee.getIndex()] = encoding;
     defineEncodingConstants(runtime, encoding, e.bytes, e.p, e.end);
   }
 }