Module "encode_int"
===================

Integer encoder
 
function encode_int(text);
--------------------------

This function gets a text as parameter and returns the portion of the text
from the beginning which only consists of numbers. Deciamal numbers and
negative numbers are not supported. If there is no number at the beginning
of the passed text, 0 is returned.

Whitespaces before the integer are ignored.

The primary use of this function is to 'quote' integers in those cases where
it is not possible to do real quoting but a user input needs to be quoted
somehow for security. E.g. SQLite handles an integer differently when it is
quoted as text and so quoting using encode_sql() would work out.

This function is designed to be used with the encoding/quoting operator (::).
 
