Kernel::Analyze => Functions


Public
DescriptionAnalyse a request and transform this in two hashtables
Parameters
$stream
type$IO::Scalar
description the stream where read
Descriptionprint the hashtable in a stream object (see the protocol
Output
typeboolean
description 1 on success, 0 otherwise
Parameters
$output
typeref
description reference to the stream to use
$hash
typepointeur to %HASH
description the hashtable what to print in the stream
Descriptiondecode a string from base 64
Output
type$STRING
description the decoded string
Parameters
$data
type$STRING
description the string to encoded in base 64
Descriptionencode a string to base 64
Output
type$STRING
description the encoded string
Parameters
$data
type$STRING
description the string to encode to base 64

Private
Descriptionconcat data in a string
Output
type$STRING
description the data separated by a ','
Parameters
$list
typepointeur to @ARRAY
description the list to concat
$encode
typeboolean
description 1 if each data must be base64 coded before to
Descriptiondecompose a line and put it in a hashtable
Output
typeboolean
description 1 on success, 0 otherwise
Parameters
$line
type$STRING
description the string to analyze
$ht
typepointeur to %HASH
description the hash table where data are put
$hash_key
typepointeur to %HASH
description hashtable which contains keys path
$hash_value
typepointeur to %HASH
description hashtable which contains values
DescriptionEncode a line
Output
type$STRING
description the encoded line
Parameters
$ref
type$STRING
description the line to encode (might be not defined)
Descriptionprint a hashtable in a stream object
Output
typeboolean
description 1 on success, 0 otherwise
Parameters
$hash_table
typepointeur to %HASH
description the hashtable to print in a stream
$output
typeref
description reference to the stream to use
Descriptionreturn a 2 lists of encoded keys and values.
Output
type@ARRAY
description containing two references of arrays; the first is a list
Parameters
$root
type$STRING
description the prefix path
$ht
typepointeur to %HASH
description the hash table to print
DescriptionAdd to the hashtable, new hash tables ($hash_key, $hash_value)
Output
typeboolean
description 1 on success, 0 otherwise
Parameters
$hash_table
typepointeur to %HASH
description the hashtable on which we add informations
$hash_key
typepointeur to %HASH
description the hashtable containing the keys
$hash_value
typepointeur to %HASH
description the hashtable containing the values
Descriptionverify the integrity of the request on hashtables
Output
typeboolean
description 1 on success, 0 otherwise
Parameters
$hash_key
typepointeur to %HASH
description the hashtable containing the keys of hashtables
$hash_value
typepointeur to %HASH
description the hashtable containing the value of