Skip to content

Instantly share code, notes, and snippets.

View loxxous's full-sized avatar

Lucas Marsh loxxous

View GitHub Profile
<?php
class XML_Controller
{
/*
Write out the content from the XML data.
It checks to see if it's proper XML format, an error code, or invalid due to an error.
*/
function Print_XML($xml)
{
if (is_array($xml) || is_object($xml))
/*
A basic 16N O(n log n) suffix array construction algorithm.
The maximum blocksize is set to 1 MB by default.
*/
#include <cstdio>
#include <stdint.h>
#include <stdlib.h>
#include <algorithm>
#include <cstring>