PHP Classes

File: application/libraries/dompdf/lib/ttf2ufm/src/scripts/frommap

Recommend this page to a friend!
  Classes of harold rita   PHP Thesis Proposal Hub   application/libraries/dompdf/lib/ttf2ufm/src/scripts/frommap   Download  
File: application/libraries/dompdf/lib/ttf2ufm/src/scripts/frommap
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Thesis Proposal Hub
Store and publish research thesis documents
Author: By
Last change:
Date: 6 years ago
Size: 370 bytes
 

Contents

Class file image Download
#!/usr/bin/perl # # A script to convert a Unicode character map to # the C code # sub fromhex { return eval "0x".$_[0]; } $inmap=0; while(<>) { if(/^CHARMAP/) { $inmap=1; } elsif(/^END CHARMAP/) { $inmap=0; } elsif($inmap && /^\s*\S+\s+\/x([0-9a-fA-F][0-9a-fA-F])\s+\<U([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])/) { $map[fromhex($1)]=fromhex($2); } }