/usr/lib/kaya/imports/Image.ki is in libkaya-gd-dev 0.4.4-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 | %except Builtins::InternalError(Int);
%except Builtins::Project_From_Non_Union();
%except Builtins::Lookup_From_Non_Array();
%except Builtins::Negative_Array_Index();
%except Builtins::Wrong_Constructor();
%except Builtins::Getting_Tag_From_Non_Union();
%except Builtins::Invalid_Marshalling_ID();
%except Builtins::Invalid_Function_Table_Hash();
%except Builtins::Invalid_Value();
%except Builtins::Not_Implemented();
%except Builtins::Invalid_Circular_Structure();
%except Builtins::Cant_Marshal_Exceptions();
%except Builtins::Cant_Reflect_Exceptions();
%except Builtins::Missing_Case();
%except Builtins::Pattern_Matching_Assignment_Failure();
%except Builtins::Unguarded_Guard();
%except Builtins::Divide_By_Zero();
%except Builtins::Loop_Return(a);
%except Builtins::Loop_VoidReturn();
%except Builtins::IllegalIndex();
%except Builtins::NoNullsInStrings();
%extinline 5 pure Bool Builtins::inverse(Bool val){ return (!val); };
%extinline 5 pure a Builtins::identity(a val){ return val; };
%extern 5 String Builtins::createString(Int);
%extinline 5 Float Builtins::abs(Float x){ return (if ((x<0.0)) (-x) else x); };
%extinline 5 Int Builtins::abs(Int x){ return (if ((x<0)) (-x) else x); };
%extern 5 Int Builtins::dorand();
%extern 5 Int Builtins::rand();
%extern 5 Void Builtins::srand(Int);
%extern 5 Void Builtins::swap(a,a);
%extern 5 Bool Builtins::identical(a,a);
%extern 5 Bool Builtins::null(Ptr);
%extern 5 Int Builtins::fnid(Void(a));
%extern 5 Int Builtins::strAlloc(String);
%extern 5 Void Builtins::exceptionBacktrace(Exception);
%extern 5 String Builtins::exceptionMessage(Exception);
%extinline 5 pure Ptr Builtins::getVM(){ return %VM; };
%extern 5 anything Builtins::subvert(something);
%extern 5 any Builtins::copy(any);
%extern 5 Int Builtins::hash(any);
%extern 5 Bool Builtins::equal(any,any);
%extern 5 Int Builtins::compare(any,any);
%extern 5 any Builtins::unmarshal(String,Int);
%extern 5 String Builtins::marshal(any,Int);
%extern 5 Void Builtins::translate(String,Char(Char));
%extern 5 Void Builtins::setIndex(String,Char,Int);
%extern 5 Char Builtins::getIndex(String,Int);
%extern 5 Int Builtins::byteLength(String);
%extinline 5 pure Int Builtins::length(String s){ return (%length(s)); };
%extern 5 Int Builtins::strHash(String);
%extern 5 Void Builtins::exit(Int);
%extern 5 Bool Builtins::runTimeChecking();
%extern 5 Int Builtins::doStrHash(String,Int);
%extern 5 str Builtins::doCreateString(Ptr,Int);
%extern 5 Int Builtins::doStrAlloc(str);
%extern 5 Void Builtins::except_dump(exc);
%extern 5 pure String Builtins::except_msg(exc);
%extern 5 pure Int Builtins::except_code(exc);
%extern 5 Int Builtins::funtableHash();
%extern 5 pure Int Builtins::doGetFnID(fn);
%extern 5 pure Bool Builtins::isIdentical(a,a);
%extern 5 pure Bool Builtins::isNull(Ptr);
%extern 5 pure String Builtins::getAddr(a);
%extern 5 Bool Builtins::isInitialised(a);
%extern 5 pure a Builtins::unsafe_id(b);
%extern 5 any Builtins::doCopy(Ptr,any);
%extern 5 Void Builtins::doSetIndex(String,Char,Int);
%extern 5 pure Char Builtins::doGetIndex(String,Int);
%extern 5 pure Bool Builtins::doEqual(Ptr,a,a);
%extern 5 pure Int Builtins::doCompare(Ptr,a,a);
%extern 5 pure any Builtins::doUnmarshal(Ptr,String,Int);
%extern 5 pure String Builtins::doMarshal(Ptr,a,Int);
%extern 5 pure Int Builtins::doHash(a);
%extern 5 Int Builtins::memUsage(a);
%extern 5 pure Int Builtins::doByteLength(String,Int);
%extern 5 pure Bool Builtins::UTF8(String);
%extern 5 pure Int Builtins::size([a]);
%extern 5 pure %startup Void Builtins::__init();
%imported "Builtins";
%extinline 5 pure Float Maths::SQRT_PI(){ return 1.772453850905516; };
%extinline 5 pure Float Maths::SQRT_2(){ return 1.4142135623730951; };
%extinline 5 pure Float Maths::M_E(){ return 2.718281828459045; };
%extinline 5 pure Float Maths::PI(){ return 3.141592653589793; };
%extern 5 pure Int Maths::pow(Int,Int);
%extern 5 Float Maths::atan(Float);
%extern 5 Float Maths::acos(Float);
%extern 5 Float Maths::asin(Float);
%extern 5 Float Maths::tan(Float);
%extern 5 Float Maths::cos(Float);
%extern 5 Float Maths::sin(Float);
%extern 5 Float Maths::floor(Float);
%extern 5 Float Maths::ceil(Float);
%extern 5 Float Maths::log10(Float);
%extern 5 Float Maths::log(Float);
%extern 5 Float Maths::exp(Float);
%extern 5 Float Maths::sqrt(Float);
%extern 5 Float Maths::pow(Float,Float);
%extern 5 pure %startup Void Maths::__init();
%imported "Maths";
%extern 5 pure %startup Void Tuples::__init();
%imported "Tuples";
%except Array::OutOfBounds();
%except Array::ZeroStep();
%extern 5 [a] Array::take(Int,[a]);
%extern 5 Void Array::nub([a],Bool(a, a) = equal);
%extern 5 pure Bool Array::elem(a,[a],Bool(a, a) = equal);
%extern 5 Void Array::addAt([a],a,Int);
%extern 5 Void Array::removeAt([a],Int);
%extern 5 [a] Array::remove([a],Int,Int);
%extern 5 [a] Array::subarray([a],Int,Int);
%extern 5 Void Array::unshift(a,[a]);
%extern 5 a Array::shift([a]);
%extern 5 Void Array::pop([a]);
%extern 5 a Array::top([a]);
%extern 5 Void Array::push([a],a);
%extern 5 [a] Array::filter(Bool(a),[a]);
%extern 5 b Array::fold(b(a, b),[a],b);
%extern 5 [Tuples::Pair<a, b> ] Array::zip([a],[b]);
%extern 5 [c] Array::zipWith(c(a, b),[a],[b]);
%extern 5 [b] Array::map(b(a),[a]);
%extern 5 pure Bool Array::all(Bool(a),[a]);
%extern 5 pure Bool Array::any(Bool(a),[a]);
%extern 5 [a] Array::intersperse(a,[a]);
%extern 5 [a] Array::join([[a]]);
%extern 5 Void Array::concat([a],[a]);
%extern 5 Void Array::shuffle([a]);
%extern 5 [a] Array::sorted([a],Int(a, a) = compare);
%extern 5 Void Array::sort([a],Int(a, a) = compare);
%extern 5 [Int] Array::range(Int,Int,Int = 1);
%extern 5 Void Array::reverse([a]);
%extern 5 [a] Array::createArray(Int);
%extern 5 [a] Array::docreateArray(Ptr,Int);
%extern 5 Void Array::unshiftArray(a,[a]);
%extern 5 a Array::shiftArray([a]);
%extern 5 Void Array::shortenArray([a]);
%extern 5 Void Array::quicksort(Ptr,[a],Int(a, a));
%extern 5 Void Array::resize([a],Int);
%extern 5 [a] Array::doReverse([a]);
%extern 5 pure %startup Void Array::__init();
%imported "Array";
%extern 5 String Coercions::string([Char]);
%extern 5 [Char] Coercions::array(String);
%extinline 5 pure Void Coercions::void(a x){ pass; };
%extinline 5 pure Char Coercions::char(Int x){ return Char(x); };
%extinline 5 pure Float Coercions::float(Int x){ return Float(x); };
%extinline 5 pure Float Coercions::float(String x){ return Float(x); };
%extinline 5 pure Int Coercions::int(Char x){ return Int(x); };
%extinline 5 pure Int Coercions::int(Float x){ return Int(x); };
%extinline 5 pure Int Coercions::int(String x){ return Int(x); };
%extinline 5 pure String Coercions::string(Bool x){ return String(x); };
%extinline 5 pure String Coercions::string(Char x){ return String(x); };
%extinline 5 pure String Coercions::string(Float x){ return String(x); };
%extinline 5 pure String Coercions::string(Int x){ return String(x); };
%extern 5 pure %startup Void Coercions::__init();
%imported "Coercions";
%except Prelude::CantDerefNothing();
%except Prelude::NegativeLengthString(Int);
%except Prelude::PositionOutOfRange(Int);
%except Prelude::FileNotFound();
%extern 5 String Prelude::substr(String,Int,Int);
%extern 5 String Prelude::rep(String,Int);
%extern 5 pure a() Prelude::thunk(a);
%extern 5 pure a Prelude::force(a());
%extern 5 pure a Prelude::apply(a(b),b);
%extern 5 a(c) Prelude::compose(a(b),b(c));
%extern 5 pure a Prelude::runcompose(a(b),b(c),c);
%extern 5 Void Prelude::putStrLn(String);
%extern 5 String Prelude::strEnd(String,Int);
%extern 5 String Prelude::toUpper(String);
%extern 5 String Prelude::toLower(String);
%extinline 5 pure Bool Prelude::isLineEnding(Char c){ return ((c=='\n')||(c=='\r')); };
%extern 5 Void Prelude::putStr(String);
%extern 5 Void Prelude::doPutStr(String,Int);
%extern 5 String Prelude::do_strend(Ptr,String,Int);
%extern 5 String Prelude::dosubstr(Ptr,String,Int,Int);
%extern 5 Char Prelude::toUpper(Char);
%extern 5 Char Prelude::toLower(Char);
%extern 5 Bool Prelude::isUpper(Char);
%extern 5 Bool Prelude::isLower(Char);
%extern 5 Bool Prelude::isSpace(Char);
%extern 5 Bool Prelude::isGraph(Char);
%extern 5 Bool Prelude::isPunct(Char);
%extern 5 Bool Prelude::isAlnum(Char);
%extern 5 Bool Prelude::isAlpha(Char);
%extern 5 Bool Prelude::isDigit(Char);
%extern 5 Void Prelude::onDestroy(a,Void(a));
%extern 5 Void Prelude::gcEnable();
%extern 5 Void Prelude::gcDisable();
%extern 5 Int Prelude::gcSetFSD(Int);
%extern 5 Void Prelude::gcIncremental();
%extern 5 Void Prelude::gcSetMaxHeapSize(Int);
%extern 5 Int Prelude::gcTotalBytes();
%extern 5 Int Prelude::gcFreeBytes();
%extern 5 Int Prelude::gcHeapSize();
%extern 5 Void Prelude::gc();
%extern 5 String Prelude::stringBase(Int,Int);
%extern 5 Int Prelude::intBase(String,Int);
%extern 5 a Prelude::deref(Prelude::Maybe<a> );
%extern 5 Void Prelude::reverse(Prelude::List<a> );
%extern 5 [a] Prelude::array(Prelude::List<a> );
%extern 5 Void Prelude::traverse(Bool(a, Int),Prelude::List<a> );
%extern 5 pure %startup Void Prelude::__init();
%imported "Prelude";
%except IO::FileError();
%except IO::DirError();
%except IO::InvalidMode();
%except IO::ClosedFile();
%except IO::ReadOnlyFile();
%except IO::WriteOnlyFile();
%extern 5 [IO::DirInfo] IO::getDirInfo(String);
%extern 5 IO::DirTree IO::dirinfo(String);
%extern 5 IO::Stat IO::stat(String);
%extern 5 [String] IO::listDir(String);
%extern 5 IO::DirEntry IO::readDir(IO::Dir);
%extern 5 Void IO::closeDir(IO::Dir);
%extern 5 IO::Dir IO::openDir(String);
%extern 5 Bool IO::fileExecutable(String);
%extern 5 Bool IO::fileWritable(String);
%extern 5 Bool IO::fileReadable(String);
%extern 5 Bool IO::fileExists(String);
%extern 5 Int IO::permBits([IO::Permission]);
%extern 5 Void IO::mkdir(String,IO::Permissions = @Permissions([ReadP,WriteP,ExecuteP],[ReadP,WriteP,ExecuteP],[ReadP,WriteP,ExecuteP],false,false,false));
%extern 5 Void IO::unlink(String);
%extern 5 IO::File IO::tmpFile();
%extern 5 Void IO::writeFile(String,String);
%extern 5 String IO::readFile(String);
%extern 5 Void IO::close(IO::File);
%extern 5 Void IO::flush(IO::File);
%extern 5 Bool IO::eof(IO::File);
%extern 5 Int IO::getInt(IO::File);
%extern 5 Void IO::putInt(IO::File,Int);
%extern 5 Void IO::putChar(IO::File,Char);
%extern 5 Void IO::put(IO::File,String);
%extern 5 String IO::get(IO::File);
%extern 5 IO::File IO::reopen(String,[IO::FileMode],IO::File);
%extern 5 IO::File IO::open(String,[IO::FileMode]);
%extern 5 String IO::getFileMode([IO::FileMode]);
%extern 5 Void IO::putStr(IO::File,String);
%extern 5 Ptr IO::ptr(IO::File);
%extern 5 IO::File IO::file(Ptr,[IO::FileMode] = [Read,Write,Append]);
%extern 5 IO::File IO::stderr();
%extern 5 IO::File IO::stdout();
%extern 5 IO::File IO::stdin();
%extern 5 Char IO::getChar(IO::File);
%extern 5 String IO::getString(IO::File);
%extern 5 Void IO::fseek(IO::File,Int);
%extern 5 Int IO::fpos(IO::File);
%extern 5 Void IO::writeCheck(IO::File);
%extern 5 Void IO::openCheck(IO::File);
%extern 5 Void IO::readCheck(IO::File);
%extern 5 pure Bool IO::isWritable(IO::File);
%extern 5 pure Bool IO::isReadable(IO::File);
%extern 5 pure Bool IO::isOpen(IO::File);
%extern 5 Ptr IO::getstderr();
%extern 5 Ptr IO::getstdout();
%extern 5 Ptr IO::getstdin();
%extern 5 IO::Stat IO::do_stat(Ptr,String);
%extern 5 String IO::dir_getname(Ptr,Ptr);
%extern 5 Ptr IO::do_readdir(Ptr);
%extern 5 Int IO::do_closedir(Ptr);
%extern 5 Ptr IO::do_opendir(String);
%extern 5 Void IO::rename(String,String);
%extern 5 Int IO::do_access(String,IO::AccessMode);
%extern 5 Int IO::do_mkdir(String,Int);
%extern 5 Int IO::do_unlink(String);
%extern 5 Void IO::fclose(Ptr);
%extern 5 Int IO::do_fflush(Ptr);
%extern 5 Bool IO::feof(Ptr);
%extern 5 Int IO::do_fpos(Ptr);
%extern 5 Void IO::do_fseek(Ptr,Int);
%extern 5 Void IO::putLine(Ptr,String,Int);
%extern 5 Void IO::doPutStr(Ptr,String,Int);
%extern 5 Void IO::doputChar(Int,Ptr);
%extern 5 Char IO::do_fgetc(Ptr);
%extern 5 String IO::do_getString(Ptr,Ptr);
%extern 5 String IO::getLine(Ptr,Ptr);
%extern 5 Bool IO::validFile(Ptr);
%extern 5 Ptr IO::freopen(String,String,Ptr);
%extern 5 Ptr IO::fopen(String,String);
%extern 5 Ptr IO::do_tmpFile();
%extern 5 pure %startup Void IO::__init();
%imported "IO";
%imported "binary_glue";
%except Binary::OffsetOutOfRange();
%extern 5 Binary::Binary Binary::base64Decode(String);
%extern 5 String Binary::base64Encode(Binary::Binary);
%extern 5 Binary::Binary Binary::readBlock(IO::File,Int);
%extern 5 Void Binary::writeBlock(IO::File,Binary::Binary);
%extern 5 Void Binary::setBlockData(Binary::Binary,Int,[Int]);
%extern 5 [Int] Binary::array(Binary::Binary);
%extern 5 [Int] Binary::getBlockChunk(Binary::Binary,Int,Int);
%extern 5 Binary::Binary Binary::copyChunk(Binary::Binary,Int,Int);
%extern 5 Binary::Binary Binary::copyBlock(Binary::Binary);
%extern 5 String Binary::peekString(Binary::Binary,Int);
%extern 5 Void Binary::pokeString(Binary::Binary,Int,String);
%extern 5 Int Binary::peek(Binary::Binary,Int);
%extern 5 Void Binary::poke(Binary::Binary,Int,Int);
%extern 5 pure Ptr Binary::blockData(Binary::Binary);
%extern 5 pure Int Binary::blockSize(Binary::Binary);
%extern 5 pure Binary::Binary Binary::createInitialisedBlock(Ptr,Int);
%extern 5 Binary::Binary Binary::createBlock(Int);
%extern 5 Ptr Binary::b64binarydec(String,intval);
%extern 5 String Binary::b64binary(Ptr,Int);
%extern 5 Ptr Binary::doreadBlock(Ptr,a);
%extern 5 Int Binary::dowriteBlock(Ptr,Ptr,Int);
%extern 5 Void Binary::dosetBlockData(Ptr,Int,Int,[Int]);
%extern 5 [Int] Binary::dogetBlockData(Ptr,Int,Int);
%extern 5 Ptr Binary::docopyChunk(Ptr,Int,Int);
%extern 5 Ptr Binary::docopyBlock(Ptr,Int);
%extern 5 String Binary::dopeekString(Ptr,Int,Int);
%extern 5 Void Binary::dopokeString(Ptr,Int,String);
%extern 5 Int Binary::dopeek(Ptr,Int);
%extern 5 Void Binary::dopoke(Ptr,Int,Int);
%extern 5 Ptr Binary::newBlock(Int);
%extern 5 pure %startup Void Binary::__init();
%imported "Binary";
%extern 5 Dict::Dict<a, b> Dict::dict([Tuples::Pair<a, b> ]);
%extern 5 [Tuples::Pair<a, b> ] Dict::entries(Dict::TinyDict<a, b> );
%extern 5 [Tuples::Pair<a, b> ] Dict::entries(Dict::Dict<a, b> );
%extern 5 pure [b] Dict::vals(Dict::TinyDict<a, b> );
%extern 5 [b] Dict::vals(Dict::Dict<a, b> );
%extern 5 pure [a] Dict::keys(Dict::TinyDict<a, b> );
%extern 5 Void Dict::delete(Dict::TinyDict<a, b> ,a);
%extern 5 Void Dict::delete(Dict::Dict<a, b> ,a);
%extern 5 [a] Dict::keys(Dict::Dict<a, b> );
%extern 5 pure Bool Dict::empty(Dict::TinyDict<a, b> );
%extern 5 pure Bool Dict::empty(Dict::Dict<a, b> );
%extern 5 Bool Dict::exists(Dict::TinyDict<a, b> ,a);
%extern 5 Bool Dict::exists(Dict::Dict<a, b> ,a);
%extern 5 Prelude::Maybe<b> Dict::lookup(Dict::TinyDict<a, b> ,a);
%extern 5 Prelude::Maybe<b> Dict::lookup(Dict::Dict<a, b> ,a);
%extern 5 Void Dict::add(Dict::TinyDict<a, b> ,a,b);
%extern 5 Void Dict::add(Dict::Dict<a, b> ,a,b);
%extern 5 pure Int Dict::numBuckets(Dict::Dict<a, b> );
%extern 5 Dict::TinyDict<a, b> Dict::newTiny();
%extern 5 Dict::Dict<a, b> Dict::new(Int = 157,Int(a) = hash);
%extern 5 pure %startup Void Dict::__init();
%imported "Dict";
%imported "regex_glue";
%link "pcre";
%except Regex::RegexCompilationFailed();
%except Regex::NoUTF8Support();
%extern 5 [String] Regex::split(Regex::Regex,String,Int = 0,Bool = false);
%extern 5 [String] Regex::split(String,String,Int = 0,Bool = false);
%extern 5 [String] Regex::grep(String,[String],Bool = false);
%extern 5 String Regex::substVars([String],String);
%extern 5 Void Regex::replace(String,String,String,[Regex::ReplaceFlags] = @createArray(1),[Regex::REFlags] = @createArray(1));
%extern 5 Void Regex::replace(Regex::Regex,String,String,[Regex::ReplaceFlags] = @createArray(1));
%extern 5 Void Regex::replaceAll(String,String,String,[Regex::ReplaceFlags] = @createArray(1),[Regex::REFlags] = @createArray(1));
%extern 5 Void Regex::replaceAll(Regex::Regex,String,String,[Regex::ReplaceFlags] = @createArray(1));
%extern 5 Bool Regex::quickMatch(Regex::Regex,String);
%extern 5 Bool Regex::quickMatch(String,String,[Regex::REFlags] = @createArray(1));
%extern 5 Regex::Match Regex::match(Regex::Regex,String);
%extern 5 Regex::Regex Regex::compile(String,[Regex::REFlags] = @createArray(1));
%extern 5 String Regex::getAfter(Ptr);
%extern 5 String Regex::getBefore(Ptr);
%extern 5 [String] Regex::getmatches(Ptr);
%extern 5 Bool Regex::matched(Ptr);
%extern 5 Bool Regex::re_quickmatch(Ptr,Ptr,String,Int);
%extern 5 Ptr Regex::re_match(Ptr,Ptr,String,Int);
%extern 5 Ptr Regex::re_compile(Ptr,String,Int,Int);
%extern 5 pure %startup Void Regex::__init();
%imported "Regex";
%extern 5 [String] Strings::fields(String,[Char],[Char]);
%extern 5 String Strings::base64Decode(String);
%extern 5 String Strings::base64Encode(String);
%extern 5 Void Strings::trim(String,Bool(Char) = isSpace);
%extern 5 Void Strings::ltrim(String,Bool(Char) = isSpace);
%extern 5 Void Strings::rtrim(String,Bool(Char) = isSpace);
%extern 5 Void Strings::behead(String);
%extern 5 Void Strings::rtruncate(Int,String);
%extern 5 Void Strings::ltruncate(Int,String);
%extern 5 String Strings::filter(Bool(Char),String);
%extern 5 String Strings::tail(String);
%extern 5 Char Strings::head(String);
%extern 5 String Strings::join([String],String);
%extern 5 String Strings::join([String],Char = '\n');
%extern 5 String Strings::unwords([String]);
%extern 5 [String] Strings::lines(String);
%extern 5 [String] Strings::splitBy(String,Bool(Char) = isLineEnding);
%extern 5 [String] Strings::words(String);
%extern 5 Int Strings::firstOccurs(String,String);
%extern 5 Void Strings::str_chop(str,Int);
%extern 5 Void Strings::str_offset(str,Int);
%extern 5 Int Strings::do_firstOccurs(String,String);
%extern 5 Int Strings::firstOccurs(Char,String);
%extern 5 Bool Strings::elem(Char,String);
%extern 5 String Strings::b64dec(String,intval);
%extern 5 String Strings::b64enc(String,Int);
%extern 5 pure %startup Void Strings::__init();
%imported "Strings";
%except Time::NoSuchMonthNumber(Int);
%except Time::NoSuchMonthName(String);
%except Time::NoSuchDay(String);
%except Time::CantParseTime();
%extern 5 Int Time::tzDist(Int);
%extern 5 String Time::isoTime(Int,[Time::IsoTimeOpts] = []);
%extern 5 String Time::isoTime(Time::Time,[Time::IsoTimeOpts] = [],Int = 0);
%extern 5 pure String Time::twodigits(Int);
%extern 5 Time::Time Time::parseISO8601(String);
%extern 5 Time::Time Time::parseRFC2822(String);
%extern 5 String Time::cookieTime(Time::Time);
%extern 5 String Time::rfc2822Time(Time::Time,String = "+0000");
%extern 5 Time::Day Time::day(String);
%extern 5 String Time::string(Time::Day);
%extern 5 Time::Month Time::month(Int);
%extern 5 Int Time::int(Time::Month);
%extern 5 Time::Month Time::month(String);
%extern 5 String Time::string(Time::Month);
%extern 5 Time::Time Time::addDays(Time::Time,Int);
%extern 5 Int Time::mkTime(Time::Time);
%extern 5 Time::Time Time::localTime(Int = @now());
%extern 5 Time::Time Time::gmTime(Int = @now());
%extern 5 Int Time::domktime(Time::Time);
%extern 5 Time::Time Time::dolocaltime(Int);
%extern 5 Time::Time Time::dogmtime(Int);
%extern 5 Int Time::microTime();
%extern 5 Int Time::now();
%extern 5 pure %startup Void Time::__init();
%imported "Time";
%extern 5 String System::progName();
%extern 5 Void System::microSleep(Int);
%extern 5 Void System::sleep(Int);
%extern 5 String System::getCwd();
%extern 5 Int System::getPID();
%extern 5 Void System::chdir(String);
%extern 5 String System::getEnv(String);
%extern 5 [String] System::getArgs();
%extern 5 Void System::_exit(Int);
%extern 5 pure %startup Void System::__init();
%imported "System";
%extern 5 String Mime::unQuote(String);
%extern 5 String Mime::tmpMimeName();
%extern 5 String Mime::findMimeBoundary(String);
%extern 5 [Mime::Mime] Mime::mimeDecode(Char(),Bool(),Int,String,String = "");
%extern 5 [Char] Mime::getBinaryLine(Char(),Bool());
%extern 5 pure %startup Void Mime::__init();
%imported "Mime";
%except WebCommon::NotIncoming(String);
%except WebCommon::urlEncodeError();
%except WebCommon::urlDecodeError();
%except WebCommon::InvalidCookie(String);
%extern 5 Tuples::Pair<String, String> WebCommon::setCookie(String,String,Prelude::Maybe<Time::Time> = nothing,Prelude::Maybe<String> = nothing,Prelude::Maybe<String> = nothing,Bool = false);
%extern 5 String WebCommon::webappName();
%extern 5 String WebCommon::contentType(WebCommon::Uploaded);
%extern 5 String WebCommon::tempPath(WebCommon::Uploaded);
%extern 5 String WebCommon::originalName(WebCommon::Uploaded);
%extern 5 Void WebCommon::setKayaMaxPost(Int);
%extern 5 Int WebCommon::webProgPostMax();
%extern 5 Void WebCommon::allowFileUploads();
%extern 5 Void WebCommon::setKayaUploadDir(String);
%extern 5 String WebCommon::webProgTmp();
%extern 5 Bool WebCommon::incomingFileExists(String);
%extern 5 WebCommon::Uploaded WebCommon::incomingFile(String);
%extern 5 [WebCommon::Uploaded] WebCommon::incomingFiles(String);
%extern 5 [String] WebCommon::incomingFileKeys();
%extern 5 Bool WebCommon::incomingExists(String,WebCommon::DataSource);
%extern 5 String WebCommon::incomingValue(String,WebCommon::DataSource);
%extern 5 [String] WebCommon::incomingData(String,WebCommon::DataSource);
%extern 5 [String] WebCommon::incomingKeys(WebCommon::DataSource);
%extern 5 Void WebCommon::parseUnit(Dict::Dict<String, [String]> ,String,Regex::Regex,Bool = false);
%extern 5 Dict::Dict<String, [String]> WebCommon::parseVars(String,[Char],Bool = false);
%extern 5 Void WebCommon::parseMime([Mime::Mime]);
%extern 5 Void WebCommon::initVars(String,String(String),Char(),Bool());
%extern 5 Void WebCommon::removeTemporaryUploaded();
%extern 5 Void WebCommon::initWebApp(String,String(String),Char(),Bool());
%extern 5 pure String WebCommon::urlDecode(String);
%extern 5 pure String WebCommon::urlEncode(String);
%extern 5 String WebCommon::do_urldecode(Ptr,String,Int);
%extern 5 String WebCommon::do_urlencode(Ptr,String,Int);
%extern 5 %startup Void WebCommon::__init();
%imported "WebCommon";
%link "gcrypt";
%imported "gcrypt_glue";
%extern 5 Binary::Binary Gcrypt::getHash(Gcrypt::HashHandle);
%extern 5 Void Gcrypt::finalHash(Gcrypt::HashHandle);
%extern 5 Void Gcrypt::hashString(Gcrypt::HashHandle,String);
%extern 5 Void Gcrypt::hashBinary(Gcrypt::HashHandle,Binary::Binary);
%extern 5 Void Gcrypt::resetHash(Gcrypt::HashHandle);
%extern 5 Void Gcrypt::closeHash(Gcrypt::HashHandle);
%extern 5 Gcrypt::HashHandle Gcrypt::openHash(Gcrypt::Hash,[Gcrypt::HashFlags] = @createArray(1));
%extern 5 String Gcrypt::decryptString(Gcrypt::CipherHandle,String);
%extern 5 String Gcrypt::encryptString(Gcrypt::CipherHandle,String);
%extern 5 Binary::Binary Gcrypt::decrypt(Gcrypt::CipherHandle,Binary::Binary);
%extern 5 Binary::Binary Gcrypt::encrypt(Gcrypt::CipherHandle,Binary::Binary);
%extern 5 Int Gcrypt::cipherBlockLength(Gcrypt::Cipher);
%extern 5 Int Gcrypt::cipherKeySize(Gcrypt::Cipher);
%extern 5 [Int] Gcrypt::appIVec();
%extern 5 [Int] Gcrypt::appKey();
%extern 5 Void Gcrypt::setCipherIVec(Gcrypt::CipherHandle,[Int]);
%extern 5 Void Gcrypt::setCipherKey(Gcrypt::CipherHandle,[Int]);
%extern 5 Void Gcrypt::closeCipher(Gcrypt::CipherHandle);
%extern 5 Gcrypt::CipherHandle Gcrypt::openCipher(Gcrypt::Cipher,Gcrypt::CipherMode,[Gcrypt::CipherFlags] = @createArray(1));
%extern 5 [Int] Gcrypt::do_appIVec();
%extern 5 [Int] Gcrypt::do_appKey();
%extern 5 Ptr Gcrypt::do_hashGet(Ptr,intval);
%extern 5 Void Gcrypt::do_hashFinal(Ptr);
%extern 5 Void Gcrypt::do_hashWrite(Ptr,Ptr,Int);
%extern 5 Void Gcrypt::do_hashReset(Ptr);
%extern 5 Void Gcrypt::do_hashClose(Ptr);
%extern 5 Ptr Gcrypt::do_hashOpen(Gcrypt::Hash,Int);
%extern 5 Int Gcrypt::do_cipherBlockLength(Int);
%extern 5 Int Gcrypt::do_cipherKeySize(Int);
%extern 5 Ptr Gcrypt::do_decrypt(Ptr,Ptr,Int,intval);
%extern 5 Ptr Gcrypt::do_encrypt(Ptr,Ptr,Int,intval);
%extern 5 Void Gcrypt::do_setivec(Ptr,[Int]);
%extern 5 Void Gcrypt::do_setkey(Ptr,[Int]);
%extern 5 Void Gcrypt::do_cipherClose(Ptr);
%extern 5 Ptr Gcrypt::do_cipherOpen(Gcrypt::Cipher,Gcrypt::CipherMode,Int);
%extern 5 Int Gcrypt::hashalgo(Gcrypt::Hash);
%extern 5 Int Gcrypt::mode(Gcrypt::CipherMode);
%extern 5 Int Gcrypt::algo(Gcrypt::Cipher);
%extern 5 pure %startup Void Gcrypt::__init();
%imported "Gcrypt";
%imported "crypto_glue";
%except Crypto::InvalidExternalKey(String);
%except Crypto::InvalidDecryptionHash();
%except Crypto::InvalidEncryptedData();
%extern 5 String Crypto::secureHash(String);
%extern 5 String Crypto::decode(String);
%extern 5 String Crypto::encode(String);
%extern 5 Void Crypto::setEncryptionIvec([Int]);
%extern 5 Void Crypto::setEncryptionKey([Int]);
%extern 5 [Int] Crypto::getIVec();
%extern 5 [Int] Crypto::getKey();
%extern 5 [Int] Crypto::getInternalIvec();
%extern 5 [Int] Crypto::getInternalKey();
%extern 5 %startup Void Crypto::__init();
%imported "Crypto";
%extern 5 pure %startup Void ElementTreeData::__init();
%imported "ElementTreeData";
%extern 5 [a] Set::array(Set::HashSet<a> );
%extern 5 pure Bool Set::empty(Set::HashSet<a> );
%extern 5 Void Set::delete(Set::HashSet<a> ,a);
%extern 5 Bool Set::elem(a,Set::HashSet<a> );
%extern 5 Void Set::add(Set::HashSet<a> ,a);
%extern 5 Void Set::traverse(Bool(a, Int),Set::HashSet<a> );
%extern 5 Set::HashSet<a> Set::newHashSet(Int = 157,Int(a) = hash);
%extern 5 Void Set::arrAux(Set::STree<a> ,[a]);
%extern 5 [a] Set::array(Set::Set<a> );
%extern 5 Bool Set::empty(Set::Set<a> );
%extern 5 a Set::deleteLeftmost(Set::STree<a> );
%extern 5 Void Set::deleteRoot(Set::STree<a> );
%extern 5 Void Set::delete(Set::STree<a> ,a,Int(a, a));
%extern 5 Void Set::traverseAux(Int,Bool(a, Int),Set::STree<a> );
%extern 5 Void Set::traverse(Bool(a, Int),Set::Set<a> );
%extern 5 pure Void Set::delete(Set::Set<a> ,a);
%extern 5 Bool Set::elem(a,Set::Set<a> );
%extern 5 Void Set::add(Set::STree<a> ,Int(a, a),a);
%extern 5 pure Void Set::add(Set::Set<a> ,a);
%extern 5 pure Set::Set<a> Set::newSet(Int(a, a) = compare);
%extern 5 pure %startup Void Set::__init();
%imported "Set";
%extern 5 Dict::Dict<String, Int> HTMLentities::makeNamedEnts();
%extern 5 Prelude::Maybe<Int> HTMLentities::lookupEntity(String);
%extern 5 %startup Void HTMLentities::__init();
%imported "HTMLentities";
%except XMLentities::InvalidChar(Int);
%extern 5 String XMLentities::literalToEntity(String);
%extern 5 String XMLentities::entityToLiteral(String,Bool = true);
%extern 5 pure %startup Void XMLentities::__init();
%imported "XMLentities";
%except ElementTree::InputError(String);
%except ElementTree::UnexpectedEnd(String);
%except ElementTree::ExpectedChar(Char,String);
%except ElementTree::UnexpectedChar(Char,String);
%except ElementTree::NotLazy();
%extern 5 String ElementTree::getLP(ElementTree::Original,Int);
%extern 5 Void ElementTree::skipComment(ElementTree::Original,Int,ElementTree::ConvertOpts);
%extern 5 Void ElementTree::skipTag(ElementTree::Original,Int,ElementTree::ConvertOpts);
%extern 5 String ElementTree::getAttVal(ElementTree::Original,Int,Char,ElementTree::ConvertOpts);
%extern 5 Void ElementTree::parseAttribute(ElementTree::Original,Int,ElementTreeData::ElementTree,ElementTree::ConvertOpts);
%extern 5 Bool ElementTree::parseAttributes(ElementTree::Original,Int,ElementTreeData::ElementTree,ElementTree::ConvertOpts);
%extern 5 Void ElementTree::skipToTagEnd(ElementTree::Original,Int,ElementTree::ConvertOpts);
%extern 5 ElementTree::StartTagType ElementTree::analyseStartTag(ElementTree::Original,String,Int,ElementTree::ConvertOpts);
%extern 5 String ElementTree::getTagName(ElementTree::Original,Int,Char = '>',ElementTree::ConvertOpts);
%extern 5 Bool ElementTree::parseEndTag(ElementTree::Original,String,Int,ElementTree::ConvertOpts);
%extern 5 Void ElementTree::parseString(ElementTree::Original,ElementTreeData::ElementTree,Int,ElementTree::ConvertOpts);
%extern 5 Dict::Dict<String, a> ElementTree::lowerDict(Dict::Dict<String, a> );
%extern 5 ElementTreeData::ElementTree ElementTree::elementTree(String,String = "tree",Dict::Dict<String, [String]> = @Dict::new(2,strHash),Dict::Dict<String, [String]> = @Dict::new(2,strHash),[String] = @createArray(1),Dict::Dict<String, ElementTreeData::ElementTree([Tuples::Pair<String, String> ])> = @Dict::new(2,strHash),Bool = false,Bool = false);
%extern 5 Bool ElementTree::stripEmpty(ElementTreeData::ElementTree,[String] = @createArray(1));
%extern 5 String ElementTree::getAllText(ElementTreeData::ElementTree);
%extern 5 String ElementTree::getText(ElementTreeData::ElementTree);
%extern 5 [ElementTreeData::ElementTree] ElementTree::getSubtrees(ElementTreeData::ElementTree);
%extern 5 pure Prelude::Maybe<Int> ElementTree::findElement(ElementTreeData::ElementTree,String);
%extern 5 Prelude::Maybe<String> ElementTree::getAttribute(ElementTreeData::ElementTree,String);
%extern 5 pure Dict::TinyDict<String, String> ElementTree::getAttributes(ElementTreeData::ElementTree);
%extern 5 pure String ElementTree::getName(ElementTreeData::ElementTree);
%extern 5 pure [ElementTreeData::Element] ElementTree::getElements(ElementTreeData::ElementTree);
%extern 5 Int ElementTree::textSizeOfBlock(ElementTreeData::Element);
%extern 5 Void ElementTree::unsetAttribute(ElementTreeData::ElementTree,String);
%extern 5 Void ElementTree::setAttribute(ElementTreeData::ElementTree,String,String);
%extern 5 Void ElementTree::evaluateGenerator(ElementTreeData::ElementTree,Int);
%extern 5 Void ElementTree::addDataAt(ElementTreeData::ElementTree,String,Int);
%extern 5 Void ElementTree::unshiftData(ElementTreeData::ElementTree,String);
%extern 5 Void ElementTree::pushData(ElementTreeData::ElementTree,String);
%extern 5 Void ElementTree::addGeneratorAt(ElementTreeData::ElementTree,ElementTreeData::ElementTree(),Int);
%extern 5 Void ElementTree::unshiftGenerator(ElementTreeData::ElementTree,ElementTreeData::ElementTree());
%extern 5 Void ElementTree::pushGenerator(ElementTreeData::ElementTree,ElementTreeData::ElementTree());
%extern 5 Void ElementTree::addElementAt(ElementTreeData::ElementTree,ElementTreeData::ElementTree,Int);
%extern 5 Void ElementTree::unshiftElement(ElementTreeData::ElementTree,ElementTreeData::ElementTree);
%extern 5 Void ElementTree::pushElement(ElementTreeData::ElementTree,ElementTreeData::ElementTree);
%extern 5 Int ElementTree::attrHash(String);
%extern 5 ElementTreeData::ElementTree ElementTree::newElement(String,Int = 0);
%extern 5 String ElementTree::simpleEncode(String,Bool = false,ElementTreeData::UnicodeFormat = LiteralUTF8);
%extern 5 String ElementTree::openTag(ElementTreeData::ElementTree,ElementTreeData::UnicodeFormat);
%extern 5 String ElementTree::singletonTag(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode,ElementTreeData::UnicodeFormat);
%extern 5 pure String ElementTree::endTag(ElementTreeData::ElementTree);
%extern 5 String ElementTree::startTag(ElementTreeData::ElementTree,ElementTreeData::UnicodeFormat);
%extern 5 String ElementTree::getIndent([String],Int);
%extern 5 pure [String] ElementTree::makeIndents();
%extern 5 Bool ElementTree::doLazyOutput(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash),[String],Void(String));
%extern 5 Bool ElementTree::doLazyPrint(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash),[String]);
%extern 5 Void ElementTree::lazyPrint(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash));
%extern 5 Void ElementTree::lazyOutput(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash),Void(String));
%extern 5 Bool ElementTree::lazyString(String,ElementTreeData::ElementTree(),ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash),[String]);
%extern 5 Bool ElementTree::doToString(String,ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash),[String]);
%extern 5 Bool ElementTree::format(Set::HashSet<String> ,String);
%extern 5 String ElementTree::string(ElementTreeData::ElementTree,ElementTreeData::EmptyTagMode = OpenAndClose,Int = 0,ElementTreeData::UnicodeFormat = LiteralUTF8,Set::HashSet<String> = @newHashSet(1,strHash),Set::HashSet<String> = @newHashSet(1,strHash));
%extern 5 String ElementTree::unsafeSubstr(String,Int,Int);
%extern 5 Int ElementTree::offsetFirstOccurs(Char,String,Int);
%extern 5 String ElementTree::do_unsafeSubstr(Ptr,String,Int,Int);
%extern 5 pure Char ElementTree::unsafeIndex(String,Int);
%extern 5 pure %startup Void ElementTree::__init();
%imported "ElementTree";
%extern 5 Set::HashSet<String> HTMLnesting::getAlwaysEmpty();
%extern 5 [String] HTMLnesting::isAlwaysEmpty();
%extern 5 Bool HTMLnesting::nestingExceptions(Tuples::Pair<String, String> );
%extern 5 Bool HTMLnesting::pretendEmpty(String);
%extern 5 Bool HTMLnesting::alwaysEmpty(String);
%extern 5 Bool HTMLnesting::containsCDataOnly(String);
%extern 5 Bool HTMLnesting::containsCData(String);
%extern 5 Bool HTMLnesting::containsBlock(String);
%extern 5 Bool HTMLnesting::isBlock(String);
%extern 5 Bool HTMLnesting::isAlwaysBlock(String);
%extern 5 Set::HashSet<Tuples::Pair<String, String> > HTMLnesting::makeNe();
%extern 5 Set::HashSet<String> HTMLnesting::makePe();
%extern 5 Set::HashSet<String> HTMLnesting::makeAe();
%extern 5 Set::HashSet<String> HTMLnesting::makeCdo();
%extern 5 Set::HashSet<String> HTMLnesting::makeCd();
%extern 5 Set::HashSet<String> HTMLnesting::makeCb();
%extern 5 Set::HashSet<String> HTMLnesting::makeIsab();
%extern 5 %startup Void HTMLnesting::__init();
%imported "HTMLnesting";
%imported "zlib_glue";
%link "z";
%except Compress::UncompressionFailed();
%except Compress::CompressionFailed();
%extern 5 String Compress::uncompressString(String);
%extern 5 String Compress::compressString(String);
%extern 5 Binary::Binary Compress::uncompressBinary(Binary::Binary,Int);
%extern 5 Binary::Binary Compress::compressBinary(Binary::Binary);
%extern 5 Ptr Compress::uncompressBuffer(Ptr,Ptr,Int,outint);
%extern 5 Ptr Compress::compressBuffer(Ptr,Ptr,Int,outint);
%extern 5 pure %startup Void Compress::__init();
%imported "Compress";
%except HTMLDocument::RequiresElement(String);
%except HTMLDocument::RequiresAttribute(String);
%except HTMLDocument::InvalidRange(String);
%except HTMLDocument::InvalidNesting(String);
%except HTMLDocument::TagSoupNotForOutput();
%extern 5 Dict::Dict<String, [String]> HTMLDocument::whitelistHTML(HTMLDocument::WhiteList);
%extern 5 HTMLDocument::ConversionSafety HTMLDocument::getSafety(HTMLDocument::WhiteList);
%extern 5 pure [String] HTMLDocument::genericAttribs();
%extern 5 Set::HashSet<String> HTMLDocument::tagFormats();
%extern 5 Dict::Dict<String, [String]> HTMLDocument::soupClosings();
%extern 5 Dict::Dict<String, [String]> HTMLDocument::impliedClosings();
%extern 5 Void HTMLDocument::readFromTemplate(ElementTreeData::ElementTree,String,HTMLDocument::WhiteList,HTMLDocument::Doctype,Dict::Dict<String, ElementTreeData::ElementTree([Tuples::Pair<String, String> ])> );
%extern 5 Void HTMLDocument::readFromString(ElementTreeData::ElementTree,String,HTMLDocument::WhiteList,HTMLDocument::Doctype);
%extern 5 ElementTreeData::ElementTree HTMLDocument::mkElement(String,Int = 0);
%extern 5 Void HTMLDocument::moveBlock(ElementTreeData::ElementTree,Int,ElementTreeData::ElementTree,Int);
%extern 5 Void HTMLDocument::prependGenerator(ElementTreeData::ElementTree,ElementTreeData::ElementTree());
%extern 5 Void HTMLDocument::appendGenerator(ElementTreeData::ElementTree,ElementTreeData::ElementTree());
%extern 5 Void HTMLDocument::prependExisting(ElementTreeData::ElementTree,ElementTreeData::ElementTree);
%extern 5 Void HTMLDocument::appendExisting(ElementTreeData::ElementTree,ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::anonymousBlock();
%extern 5 [ElementTreeData::ElementTree] HTMLDocument::getChildren(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLabelledTextarea(ElementTreeData::ElementTree,String,String,String = @createString(0),Int = 5,Int = 40);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addTextarea(ElementTreeData::ElementTree,String,String = @createString(0),Int = 5,Int = 40);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLabelledInput(ElementTreeData::ElementTree,String,HTMLDocument::TextInputType,String,String = @createString(0),Int = 0);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addOption(ElementTreeData::ElementTree,String,HTMLDocument::SelectOption);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addOptionList(ElementTreeData::ElementTree,String,String,[HTMLDocument::SelectOption],Bool = true);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addRemoteControlInput(ElementTreeData::ElementTree,HTMLDocument::ControlInputType,String = @createString(0),String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLocalControlInput(ElementTreeData::ElementTree,String,b(a),a,String = "");
%extern 5 String HTMLDocument::encodeControlState(b(a),a,String = "");
%extern 5 String HTMLDocument::localControlURL(b(a),a,String = "");
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLabelledSelect(ElementTreeData::ElementTree,String,String,Int,[Tuples::Pair<String, [HTMLDocument::SelectOption]> ],Bool = false);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyOption(HTMLDocument::SelectOption,String);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyOptgroup(Tuples::Pair<String, [HTMLDocument::SelectOption]> );
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLazySelect(ElementTreeData::ElementTree,String,Int,[Tuples::Pair<String, [HTMLDocument::SelectOption]> ]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addSelectElement(ElementTreeData::ElementTree,String,Int,[Tuples::Pair<String, [HTMLDocument::SelectOption]> ]);
%extern 5 Int HTMLDocument::normaliseOptgroups([Tuples::Pair<String, [HTMLDocument::SelectOption]> ],Bool);
%extern 5 Void HTMLDocument::normaliseOpt([HTMLDocument::SelectOption],Bool);
%extern 5 Void HTMLDocument::doAssociateTandI(ElementTreeData::ElementTree,ElementTreeData::ElementTree);
%extern 5 Void HTMLDocument::associateTextAndInput(ElementTreeData::ElementTree,Int,Int,ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addFieldset(ElementTreeData::ElementTree,String);
%extern 5 Void HTMLDocument::addStateFields(ElementTreeData::ElementTree,Void(a),a);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addTextInput(ElementTreeData::ElementTree,HTMLDocument::TextInputType,String,String = @createString(0),Int = 0);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addForm(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addRemoteForm(ElementTreeData::ElementTree,String,HTMLDocument::FormType);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLocalForm(ElementTreeData::ElementTree,Bool = false);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTRow(String,Int,[String]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTBlock(String,String,Int,[[String]]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTBody(Int,[[String]]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTFoot(Int,[[String]]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTHead(Int,[[String]]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::lazyTable(ElementTreeData::ElementTree,HTMLDocument::InitialTableData,String = @createString(0));
%extern 5 Void HTMLDocument::fillBlockWithData(ElementTreeData::ElementTree,[[String]],Bool = false);
%extern 5 ElementTreeData::ElementTree HTMLDocument::initialiseTable(ElementTreeData::ElementTree,HTMLDocument::InitialTableData,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::getTableCell(ElementTreeData::ElementTree,Int,Int);
%extern 5 ElementTreeData::ElementTree HTMLDocument::makeDataCell(ElementTreeData::ElementTree,Int,Int);
%extern 5 ElementTreeData::ElementTree HTMLDocument::makeHeaderCell(ElementTreeData::ElementTree,Int,Int);
%extern 5 Void HTMLDocument::addTableColumns(ElementTreeData::ElementTree,Int = 1);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addTableRow(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 Int HTMLDocument::numTsectColumns(ElementTreeData::ElementTree);
%extern 5 Int HTMLDocument::numTableColumns(ElementTreeData::ElementTree);
%extern 5 pure Bool HTMLDocument::isTsect(String);
%extern 5 pure ElementTreeData::ElementTree HTMLDocument::extractSubElement(ElementTreeData::Element);
%extern 5 [ElementTreeData::ElementTree] HTMLDocument::getTableBodySections(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addTableBodySection(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::getTableFooter(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::getTableHeader(ElementTreeData::ElementTree);
%extern 5 Void HTMLDocument::setTableCaption(ElementTreeData::ElementTree,String);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addTable(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addImage(ElementTreeData::ElementTree,HTMLDocument::ImageData);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addHorizontalRule(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addLineBreak(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::insertInlineAroundBlocks(ElementTreeData::ElementTree,HTMLDocument::InlineElement,Int,Int,Int,Int);
%extern 5 Void HTMLDocument::subarrayReplace([a],Int,[a]);
%extern 5 ElementTreeData::ElementTree HTMLDocument::insertInlineToCData(ElementTreeData::ElementTree,HTMLDocument::InlineElement,Int,Int,Int);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addInlineElementAt(ElementTreeData::ElementTree,HTMLDocument::InlineElement,Int,Int);
%extern 5 ElementTreeData::ElementTree HTMLDocument::appendInlineElement(ElementTreeData::ElementTree,HTMLDocument::InlineElement,String);
%extern 5 ElementTreeData::ElementTree HTMLDocument::makeInlineElement(HTMLDocument::InlineElement);
%extern 5 Void HTMLDocument::doAddString(ElementTreeData::ElementTree,String);
%extern 5 Void HTMLDocument::addString(ElementTreeData::ElementTree,String);
%extern 5 Bool HTMLDocument::canContainInline(String,Bool = true);
%extern 5 ElementTreeData::ElementTree HTMLDocument::pushListItem(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addListItem(ElementTreeData::ElementTree,Int,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::getListItem(ElementTreeData::ElementTree,Int);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addList(ElementTreeData::ElementTree,HTMLDocument::ListType,Int,[String] = @createArray(1));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addGenericBlock(ElementTreeData::ElementTree,String,String = @createString(0));
%extern 5 Bool HTMLDocument::canContainException(String,String);
%extern 5 Bool HTMLDocument::canContainBlock(String);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addPreformatted(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addDivision(ElementTreeData::ElementTree,String = @createString(0),String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addBlockQuote(ElementTreeData::ElementTree);
%extern 5 ElementTreeData::ElementTree HTMLDocument::addAddress(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addParagraph(ElementTreeData::ElementTree,String = @createString(0));
%extern 5 ElementTreeData::ElementTree HTMLDocument::addHeading(ElementTreeData::ElementTree,Int,String = @createString(0));
%extern 5 Prelude::Maybe<String> HTMLDocument::getAttribute(ElementTreeData::ElementTree,String);
%extern 5 Void HTMLDocument::setAttribute(ElementTreeData::ElementTree,String,String);
%extern 5 Void HTMLDocument::setTitle(ElementTreeData::ElementTree,String);
%extern 5 String HTMLDocument::nextUniqueID();
%extern 5 Void HTMLDocument::setID(ElementTreeData::ElementTree,String);
%extern 5 Void HTMLDocument::setClass(ElementTreeData::ElementTree,String);
%extern 5 Void HTMLDocument::setDocumentTitle(HTMLDocument::HTMLDocument,String);
%extern 5 Void HTMLDocument::addDocumentScripting(HTMLDocument::HTMLDocument,String);
%extern 5 Void HTMLDocument::addDocumentLink(HTMLDocument::HTMLDocument,HTMLDocument::Relationship,String,String = @createString(0),String = @createString(0));
%extern 5 Void HTMLDocument::addDocumentStylesheet(HTMLDocument::HTMLDocument,[HTMLDocument::MediaType],String);
%extern 5 Void HTMLDocument::addDocumentMetaData(HTMLDocument::HTMLDocument,String,String);
%extern 5 Void HTMLDocument::addHTTPHeader(HTMLDocument::HTMLDocument,Tuples::Pair<String, String> );
%extern 5 Void HTMLDocument::addHTTPHeader(HTMLDocument::HTMLDocument,String,String);
%extern 5 String HTMLDocument::mediaToString([HTMLDocument::MediaType]);
%extern 5 Void HTMLDocument::writeTo(HTMLDocument::HTMLDocument,Void(String),ElementTreeData::UnicodeFormat = LiteralUTF8);
%extern 5 Void HTMLDocument::write(HTMLDocument::HTMLDocument,ElementTreeData::UnicodeFormat = LiteralUTF8);
%extern 5 String HTMLDocument::headString(HTMLDocument::HTMLDocument,ElementTreeData::UnicodeFormat);
%extern 5 String HTMLDocument::substring(ElementTreeData::ElementTree,ElementTreeData::UnicodeFormat = LiteralUTF8,HTMLDocument::Doctype = HTML4Strict);
%extern 5 String HTMLDocument::string(HTMLDocument::HTMLDocument,ElementTreeData::UnicodeFormat = LiteralUTF8);
%extern 5 HTMLDocument::HTMLDocument HTMLDocument::new(HTMLDocument::Doctype,String);
%extern 5 %startup Void HTMLDocument::__init();
%imported "HTMLDocument";
%except Webapp::IllegalHandler();
%except Webapp::BadHeadersKey(String,String);
%except Webapp::BadHeadersVal(String,String);
%extern 5 Void Webapp::setSelectsOptions(ElementTreeData::ElementTree,[String]);
%extern 5 Void Webapp::unsetSelectsOptions(ElementTreeData::ElementTree);
%extern 5 Void Webapp::autoFillSelectInput(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 Void Webapp::autoFillArea(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 Void Webapp::autoFillChoiceInput(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 Void Webapp::autoFillTextInput(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 [String] Webapp::getVariables(String,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 Void Webapp::autoFillElement(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> );
%extern 5 Void Webapp::autoFill(ElementTreeData::ElementTree,WebCommon::DataSource,Dict::Dict<String, [String]> = @Dict::new());
%extern 5 Void Webapp::sendHeaders([Tuples::Pair<String, String> ]);
%extern 5 Void Webapp::displayPage(Void(),[Tuples::Pair<String, String> ]);
%extern 5 Void Webapp::displayPage(Binary::Binary,[Tuples::Pair<String, String> ]);
%extern 5 Void Webapp::displayPage(String,[Tuples::Pair<String, String> ]);
%extern 5 Void Webapp::displayPage(HTMLDocument::HTMLDocument);
%extern 5 b Webapp::doCalledFunction(String,Int,String = "");
%extern 5 String Webapp::storeFunction(String(String),b(a),a);
%extern 5 pure b Webapp::retrieveFunction(b(),String(String),String);
%extern 5 b Webapp::runHandler(b(),String = "");
%extern 5 Void Webapp::disableDebugging();
%extern 5 Void Webapp::enableDebugging();
%extern 5 Bool Webapp::debugMode();
%extern 5 Bool Webapp::headersSent();
%extern 5 %startup Void Webapp::__init();
%imported "Webapp";
%imported "image_glue";
%link "gd";
%data 5 abstract Image::Image = ;
%data 5 abstract Image::WebImage = ;
%data 5 abstract Image::Colour = ;
%data 5 abstract Image::Font = ;
%data 5 public Image::ArcStyle = Image::Arc() | Image::Chord() | Image::Pie() | Image::NoFill() | Image::Edged();
%type 5 Color = Colour;
%except Image::ColourOutOfRange();
%data 5 public Image::ImageType = Image::PNG() | Image::JPEG();
%extern 5 public Void Image::displayPage(Image::WebImage);
%extern 5 public Image::WebImage Image::webJPEG(Image::Image,[Tuples::Pair<String, String> ],Int = -1);
%extern 5 public Image::WebImage Image::webPNG(Image::Image,[Tuples::Pair<String, String> ]);
%extern 5 public Binary::Binary Image::getJPEG(Image::Image,Int = -1);
%extern 5 public Void Image::makeJPEG(Image::Image,Int = -1,String = "");
%extern 5 public Binary::Binary Image::getPNG(Image::Image);
%extern 5 public Void Image::makePNG(Image::Image,String = "");
%extern 5 public Void Image::copyResized(Image::Image,Image::Image,Int,Int,Int,Int,Int,Int,Int,Int);
%extern 5 public Void Image::copy(Image::Image,Image::Image,Int,Int,Int,Int,Int,Int);
%extern 5 public Void Image::ellipse(Image::Image,Int,Int,Int,Int,Image::Colour,Bool = false);
%extern 5 public Void Image::arc(Image::Image,Int,Int,Int,Int,Int,Int,Image::Colour,Bool = false,[Image::ArcStyle] = [Arc]);
%extern 5 public Void Image::poly(Image::Image,[Tuples::Pair<Int, Int> ],Image::Colour,Bool = false);
%extern 5 public Void Image::setPixel(Image::Image,Int,Int,Image::Colour);
%extern 5 public Void Image::rectangle(Image::Image,Int,Int,Int,Int,Image::Colour,Bool = false);
%extern 5 public Void Image::dashedLine(Image::Image,Int,Int,Int,Int,Image::Colour);
%extern 5 public Void Image::line(Image::Image,Int,Int,Int,Int,Image::Colour);
%extern 5 public Void Image::drawString(Image::Image,Image::Font,Int,Int,String,Image::Colour,Bool = false);
%extern 5 public Image::Font Image::tiny();
%extern 5 public Image::Font Image::giant();
%extern 5 public Image::Font Image::mediumBold();
%extern 5 public Image::Font Image::large();
%extern 5 public Image::Font Image::small();
%extern 5 public Image::Colour Image::makeColour(Image::Image,Int,Int,Int,Int = 0);
%extern 5 public Image::Image Image::create(String,Image::ImageType);
%extern 5 pure public Int Image::height(Image::Image);
%extern 5 pure public Int Image::width(Image::Image);
%extern 5 public Void Image::destroy(Image::Image);
%extern 5 public Image::Image Image::create(Int,Int,Bool = false);
%extern 5 Binary::Binary Image::imageGetJPEG(Ptr,Int);
%extern 5 Binary::Binary Image::imageGetPNG(Ptr);
%extern 5 Void Image::imageWriteJPEG(Ptr,Ptr,Int);
%extern 5 Void Image::imageWritePNG(Ptr,Ptr);
%extern 5 Void Image::imageCopyResized(Ptr,Ptr,Int,Int,Int,Int,Int,Int,Int,Int);
%extern 5 Void Image::imageCopy(Ptr,Ptr,Int,Int,Int,Int,Int,Int);
%extern 5 Void Image::imageArc(Ptr,Int,Int,Int,Int,Int,Int,Int,[Image::ArcStyle],Bool);
%extern 5 Void Image::imageDrawPoly(Ptr,[Tuples::Pair<Int, Int> ],Int,Bool);
%extern 5 Void Image::imageSetPixel(Ptr,Int,Int,Int);
%extern 5 Void Image::imageRectangle(Ptr,Int,Int,Int,Int,Int,Bool);
%extern 5 Void Image::imageDashedLine(Ptr,Int,Int,Int,Int,Int);
%extern 5 Void Image::imageLine(Ptr,Int,Int,Int,Int,Int);
%extern 5 Void Image::imageString(Ptr,Ptr,Int,Int,String,Int,Bool);
%extern 5 Ptr Image::fontGetTiny();
%extern 5 Ptr Image::fontGetGiant();
%extern 5 Ptr Image::fontGetMediumBold();
%extern 5 Ptr Image::fontGetLarge();
%extern 5 Ptr Image::fontGetSmall();
%extern 5 Int Image::imageColourAllocate(Ptr,Int,Int,Int,Int);
%extern 5 Image::Image Image::do_createImageFromJPEG(Ptr);
%extern 5 Image::Image Image::do_createImageFromPNG(Ptr);
%extern 5 Void Image::do_destroyImage(Ptr);
%extern 5 Ptr Image::do_createImage(Int,Int,Bool);
%extern 5 pure %startup Void Image::__init();
|