util/ Output.js

Output text functions used by the console and the log

Copyright

2004 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Related

util/Log.js

Summary
Output text functions used by the console and the log
library version
the default new line character to add to strings made by the system (default [br])
This function writes a log line to standard out (often an alert box if the console is off)
This function writes a log line to standard err (often an alert box)
Converts a decimal number to a hex value
Escapes the basic bad xml characters from a string
looks at a string and guesses if its a true or false value
Takes an error object and gives a bit more description.

Variables

SYSTEM_VERSION

library version

NEWLINE

var NEWLINE

the default new line character to add to strings made by the system (default [br])

Functions

neuro_SystemOut

function neuro_SystemOut(str)

This function writes a log line to standard out (often an alert box if the console is off)

Parameters

strthe string to log

neuro_SystemErr

function neuro_SystemErr(str)

This function writes a log line to standard err (often an alert box)

Parameters

strthe string to log

neuro_decToHex

function neuro_decToHex(dec)

Converts a decimal number to a hex value

Parameters

decdecimal number

Return

hex string

neuro_xmlFormat

function neuro_xmlFormat(str)

Escapes the basic bad xml characters from a string

Parameters

strpossible dirty string

Returns

xml friendly string

neuro_parseBoolean

function neuro_parseBoolean(str)

looks at a string and guesses if its a true or false value

Parameters

strboolean string

Returns

boolean true or false value

neuro_Reflect

function neuro_Reflect(obj)
shows information about an objectlists functions and variables - to stdout

Parameters

objthe object

neuro_expandError

function neuro_expandError(e)

Takes an error object and gives a bit more description.  Some browers show more info then others...

Parameters

ethe error object to expand

Returns

the expanded object in a printable string

var NEWLINE
the default new line character to add to strings made by the system (default [br])
function neuro_SystemOut(str)
This function writes a log line to standard out (often an alert box if the console is off)
function neuro_SystemErr(str)
This function writes a log line to standard err (often an alert box)
function neuro_decToHex(dec)
Converts a decimal number to a hex value
function neuro_xmlFormat(str)
Escapes the basic bad xml characters from a string
function neuro_parseBoolean(str)
looks at a string and guesses if its a true or false value
function neuro_Reflect(obj)
function neuro_expandError(e)
Takes an error object and gives a bit more description.