\hypertarget{class_qore_1_1zzz8valuezzz9}{}\section{Qore\+:\+:zzz8valuezzz9 Class Reference}
\label{class_qore_1_1zzz8valuezzz9}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}


Methods in this pseudo-\/class are available to be executed on any value type (even \hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+N\+G}); this is the root class for all pseudo-\/classes.  




Inheritance diagram for Qore\+:\+:zzz8valuezzz9\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_qore_1_1zzz8valuezzz9__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_a3bd7145235f0f4160b29e9ff1a925f4f}{callp} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression is a callable value (ie \hyperlink{expressions_closure}{closures} or \hyperlink{expressions_call_reference}{call references}) \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_aa89ad8b046cb41c3588b75e07426696c}{empty} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}; this method will be reimplemented in container types where it may return \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}. \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{intp} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to an integer. \end{DoxyCompactList}\item 
\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator} \hyperlink{class_qore_1_1zzz8valuezzz9_a16b7eeea1bb08b7c3faa69b2aa602fbb}{iterator} ()
\begin{DoxyCompactList}\small\item\em Returns an iterator object for the value; the default iterator object returned is \hyperlink{class_qore_1_1_single_value_iterator}{Single\+Value\+Iterator}. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_gafa2f2472f43231ec932cdc6dbcc58daf}{int} \hyperlink{class_qore_1_1zzz8valuezzz9_a6088d2158ce94d0d6c9159a628f79017}{lsize} ()
\begin{DoxyCompactList}\small\item\em Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-\/lists (except for \hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+N\+G} where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_gafa2f2472f43231ec932cdc6dbcc58daf}{int} \hyperlink{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{size} ()
\begin{DoxyCompactList}\small\item\em Returns zero; this method will be reimplemented in container types where it may return a non-\/zero value. \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_aefcaa86868b4993dd5b0f91fa7b5c1ad}{sizep} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the type can return a non-\/zero size (\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} for containers including \hyperlink{basic_data_types_binary}{binary objects} and \hyperlink{basic_data_types_string}{strings}, \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False} for everything else) \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}{strp} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to a string. \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_a671b4af222d6351eb969c2b1d710d463}{to\+Bool} ()
\begin{DoxyCompactList}\small\item\em Returns the boolean representation of the value; the default is \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_ga113d18216af1bdb70545081b6a9892ef}{float} \hyperlink{class_qore_1_1zzz8valuezzz9_a11505ca76b6e168b1d143b3fc8d1ba60}{to\+Float} ()
\begin{DoxyCompactList}\small\item\em Returns the floating-\/point representation of the value; the default is 0.\+0. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_gafa2f2472f43231ec932cdc6dbcc58daf}{int} \hyperlink{class_qore_1_1zzz8valuezzz9_aed0897423af7ddcb1ade7df4c4a61364}{to\+Int} ()
\begin{DoxyCompactList}\small\item\em Returns the integer representation of the value; the default is 0. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_gaf6000d64e3fe99ce81b9faaf44b2de4e}{number} \hyperlink{class_qore_1_1zzz8valuezzz9_ad4bcbe12f38c710e0e7e67a68ab0512f}{to\+Number} ()
\begin{DoxyCompactList}\small\item\em Returns the arbitrary-\/precision numeric representation of the value; the default is 0. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_ga4f2b4292a08b8533d6425a1368258cf2}{string} \hyperlink{class_qore_1_1zzz8valuezzz9_a073b50bf1e4e7b646da0d7a6db6180a8}{to\+String} ()
\begin{DoxyCompactList}\small\item\em Returns the string representation of the value; the default is an empty string. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_ga4f2b4292a08b8533d6425a1368258cf2}{string} \hyperlink{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{type} ()
\begin{DoxyCompactList}\small\item\em Returns the string type for the value. \end{DoxyCompactList}\item 
\hyperlink{group__type__conversion__functions_gafa2f2472f43231ec932cdc6dbcc58daf}{int} \hyperlink{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}{type\+Code} ()
\begin{DoxyCompactList}\small\item\em Returns the type code for the value. \end{DoxyCompactList}\item 
bool \hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{val} ()
\begin{DoxyCompactList}\small\item\em Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression has a value that would be converted to \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} according to the rules described in \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods in this pseudo-\/class are available to be executed on any value type (even \hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+N\+G}); this is the root class for all pseudo-\/classes. 

\subsection{Member Function Documentation}
\hypertarget{class_qore_1_1zzz8valuezzz9_a3bd7145235f0f4160b29e9ff1a925f4f}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!callp@{callp}}
\index{callp@{callp}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{callp}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::callp (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a3bd7145235f0f4160b29e9ff1a925f4f}


Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression is a callable value (ie \hyperlink{expressions_closure}{closures} or \hyperlink{expressions_call_reference}{call references}) 

\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression is a callable value (ie \hyperlink{expressions_closure}{closures} or \hyperlink{expressions_call_reference}{call references})
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} ($n.callp())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"the reuslt of calling the value: %y\(\backslash\)n"}, $n());
\end{DoxyCode}
 
\end{DoxyParagraph}
\hypertarget{class_qore_1_1zzz8valuezzz9_aa89ad8b046cb41c3588b75e07426696c}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!empty@{empty}}
\index{empty@{empty}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{empty}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::empty (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_aa89ad8b046cb41c3588b75e07426696c}


Returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}; this method will be reimplemented in container types where it may return \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}. 

This pseudo-\/method will return \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False} in all non-\/container types; use \hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{Qore\+::zzz8valuezzz9\+::val()} to check if a generic expression that might not be a container type has a value instead.

\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}; this method will be reimplemented in container types where it may return \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
my \textcolor{keywordtype}{int} $i = 100;
\textcolor{keywordflow}{if} ($i.empty())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: is empty (probably because it's a value of type %y)\(\backslash\)n"}, $i, $i.type());
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{Qore\+::zzz8valuezzz9\+::val()} 
\end{DoxySeeAlso}
\hypertarget{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!intp@{intp}}
\index{intp@{intp}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{intp}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::intp (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}


Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to an integer. 

\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to an integer
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} ($n.intp())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: can be converted to an integer: %d\(\backslash\)n"}, $n, \textcolor{keywordtype}{int}($n));
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\hyperlink{class_qore_1_1zzz8stringzzz9_ace7f5b6ac2e7b9f4886c9e153edd46d7}{Qore\+::zzz8stringzzz9\+::intp()} for an example of an implementation of this method where the result depends on the value and not the \hyperlink{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{type} 
\end{DoxySeeAlso}
\hypertarget{class_qore_1_1zzz8valuezzz9_a16b7eeea1bb08b7c3faa69b2aa602fbb}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!iterator@{iterator}}
\index{iterator@{iterator}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{iterator}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Abstract\+Iterator} Qore\+::zzz8valuezzz9\+::iterator (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a16b7eeea1bb08b7c3faa69b2aa602fbb}


Returns an iterator object for the value; the default iterator object returned is \hyperlink{class_qore_1_1_single_value_iterator}{Single\+Value\+Iterator}. 

\begin{DoxyReturn}{Returns}
an iterator object for the value; the default iterator object returned is \hyperlink{class_qore_1_1_single_value_iterator}{Single\+Value\+Iterator}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
map \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"+ %y\(\backslash\)n"}, $1), $v.iterator();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_a6088d2158ce94d0d6c9159a628f79017}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!lsize@{lsize}}
\index{lsize@{lsize}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{lsize}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} Qore\+::zzz8valuezzz9\+::lsize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a6088d2158ce94d0d6c9159a628f79017}


Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-\/lists (except for \hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+N\+G} where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values. 

\begin{DoxyReturn}{Returns}
1; the return value of this method should give the list size of the value, which is normally 1 for non-\/lists (except for \hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+N\+G} where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"iterating %d element%s\(\backslash\)n"}, $val.lsize(), $val.lsize() == 1 ? \textcolor{stringliteral}{""} : \textcolor{stringliteral}{"s"});
\textcolor{keywordflow}{foreach} my any $element in ($val) \{
    do\_something($element);
\}
\end{DoxyCode}
 
\end{DoxyParagraph}
\hypertarget{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!size@{size}}
\index{size@{size}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} Qore\+::zzz8valuezzz9\+::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}


Returns zero; this method will be reimplemented in container types where it may return a non-\/zero value. 

This pseudo-\/method will return 0 in all non-\/container types; use \hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{Qore\+::zzz8valuezzz9\+::val()} to check if a generic expression that might not be a container type has a value instead.

\begin{DoxyReturn}{Returns}
zero; this method will be reimplemented in container types where it may return a non-\/zero value
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
my \textcolor{keywordtype}{int} $i = 100;
\textcolor{keywordflow}{if} (!$i.size())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: has size 0 (probably because it's a value of type %y)\(\backslash\)n"}, $i, $i.type());
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \hyperlink{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{Qore\+::zzz8valuezzz9\+::size()}
\item \hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{Qore\+::zzz8valuezzz9\+::val()} 
\end{DoxyItemize}
\end{DoxySeeAlso}
\hypertarget{class_qore_1_1zzz8valuezzz9_aefcaa86868b4993dd5b0f91fa7b5c1ad}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!sizep@{sizep}}
\index{sizep@{sizep}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{sizep}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::sizep (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_aefcaa86868b4993dd5b0f91fa7b5c1ad}


Returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the type can return a non-\/zero size (\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} for containers including \hyperlink{basic_data_types_binary}{binary objects} and \hyperlink{basic_data_types_string}{strings}, \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False} for everything else) 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the type can return a non-\/zero size (\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} for containers including \hyperlink{basic_data_types_binary}{binary objects} and \hyperlink{basic_data_types_string}{strings}, \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False} for everything else)
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{Qore\+::zzz8valuezzz9\+::size()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+9 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!strp@{strp}}
\index{strp@{strp}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{strp}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::strp (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}


Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to a string. 

\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression can be converted to a string
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} ($n.strp())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: can be converted to a string: '%s'\(\backslash\)n"}, $n, \textcolor{keywordtype}{string}($n));
\end{DoxyCode}
 
\end{DoxyParagraph}
\hypertarget{class_qore_1_1zzz8valuezzz9_a671b4af222d6351eb969c2b1d710d463}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!to\+Bool@{to\+Bool}}
\index{to\+Bool@{to\+Bool}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{to\+Bool}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::to\+Bool (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a671b4af222d6351eb969c2b1d710d463}


Returns the boolean representation of the value; the default is \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}. 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
the boolean representation of the value; the default is \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}
\end{DoxyReturn}
\begin{DoxyNote}{Note}
if \hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{Qore\+::zzz8valuezzz9\+::intp()} returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}, then the value can also be converted to a boolean value
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_a11505ca76b6e168b1d143b3fc8d1ba60}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!to\+Float@{to\+Float}}
\index{to\+Float@{to\+Float}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{to\+Float}]{\setlength{\rightskip}{0pt plus 5cm}{\bf float} Qore\+::zzz8valuezzz9\+::to\+Float (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a11505ca76b6e168b1d143b3fc8d1ba60}


Returns the floating-\/point representation of the value; the default is 0.\+0. 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
the floating-\/point representation of the value; the default is 0.\+0
\end{DoxyReturn}
\begin{DoxyNote}{Note}
if \hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{Qore\+::zzz8valuezzz9\+::intp()} returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}, then the value can also be converted to a floating-\/point value
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_aed0897423af7ddcb1ade7df4c4a61364}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!to\+Int@{to\+Int}}
\index{to\+Int@{to\+Int}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{to\+Int}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} Qore\+::zzz8valuezzz9\+::to\+Int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_aed0897423af7ddcb1ade7df4c4a61364}


Returns the integer representation of the value; the default is 0. 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
Use \hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{Qore\+::zzz8valuezzz9\+::intp()} to determine if the current value can be converted to an integer

\begin{DoxyReturn}{Returns}
the integer representation of the value; the default is 0
\end{DoxyReturn}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_ad4bcbe12f38c710e0e7e67a68ab0512f}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!to\+Number@{to\+Number}}
\index{to\+Number@{to\+Number}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{to\+Number}]{\setlength{\rightskip}{0pt plus 5cm}{\bf number} Qore\+::zzz8valuezzz9\+::to\+Number (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_ad4bcbe12f38c710e0e7e67a68ab0512f}


Returns the arbitrary-\/precision numeric representation of the value; the default is 0. 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
the integer representation of the value; the default is 0
\end{DoxyReturn}
\begin{DoxyNote}{Note}
if \hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{Qore\+::zzz8valuezzz9\+::intp()} returns \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}, then the value can also be converted to an arbitrary-\/precision numeric value
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+8 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_a073b50bf1e4e7b646da0d7a6db6180a8}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!to\+String@{to\+String}}
\index{to\+String@{to\+String}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{to\+String}]{\setlength{\rightskip}{0pt plus 5cm}{\bf string} Qore\+::zzz8valuezzz9\+::to\+String (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a073b50bf1e4e7b646da0d7a6db6180a8}


Returns the string representation of the value; the default is an empty string. 

\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
Use \hyperlink{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}{Qore\+::zzz8valuezzz9\+::strp()} to determine if the current value can be converted to a string

\begin{DoxyReturn}{Returns}
the string representation of the value; the default is an empty string
\end{DoxyReturn}
\begin{DoxyNote}{Note}
check pseudo-\/classes for each type for other variants of this method; some may take arguments to affect the output format
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\hypertarget{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!type@{type}}
\index{type@{type}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf string} Qore\+::zzz8valuezzz9\+::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}


Returns the string type for the value. 

\begin{DoxyReturn}{Returns}
the string type for the value; see \hyperlink{group__string__type__constants}{String Type Constants} for possible return values for each type
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
my \textcolor{keywordtype}{string} $t = $n.type();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
It is faster and more efficient to use \hyperlink{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}{Qore\+::zzz8valuezzz9\+::type\+Code()} for comparing data types 
\end{DoxyNote}
\hypertarget{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!type\+Code@{type\+Code}}
\index{type\+Code@{type\+Code}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{type\+Code}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} Qore\+::zzz8valuezzz9\+::type\+Code (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}


Returns the type code for the value. 

This method is recommended over \hyperlink{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{Qore\+::zzz8valuezzz9\+::type()} or the \hyperlink{group__type__conversion__functions_gaf444d79cd29ad4c428963cc572479050}{type(any)} or \hyperlink{group__type__conversion__functions_ga839641bbaae938fccaec37f7be857bcd}{typename(any)} functions for comparing data types as it is much faster and more efficient than the other alternatives (which work with string values instead of integer codes).

\begin{DoxyReturn}{Returns}
the type code for the value; see \hyperlink{group__type__code__constants}{Type Code Constants} for possible return values for each type
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{switch} ($v.typeCode()) \{
    \textcolor{keywordflow}{case} \hyperlink{group__type__code__constants_ga38fbe0c5cf4d846a91edea6486bdd5c2}{NT\_INT}:
        \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: is an integer\(\backslash\)n"}, $v);
        \textcolor{keywordflow}{break};

    \textcolor{keywordflow}{case} \hyperlink{group__type__code__constants_ga230aa338eb63ada8096e318095f8052c}{NT\_DATE}:
        \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: is a date\(\backslash\)n"}, $v);
        \textcolor{keywordflow}{break};

    \textcolor{keywordflow}{default}:
        \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: is something else entirely\(\backslash\)n"}, $v);
        \textcolor{keywordflow}{break};
\}
\end{DoxyCode}
 
\end{DoxyParagraph}
\hypertarget{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{}\index{Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}!val@{val}}
\index{val@{val}!Qore\+::zzz8valuezzz9@{Qore\+::zzz8valuezzz9}}
\subsubsection[{val}]{\setlength{\rightskip}{0pt plus 5cm}bool Qore\+::zzz8valuezzz9\+::val (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}


Returns \hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression has a value that would be converted to \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} according to the rules described in \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}. 

This pseudo-\/method can be used to mimic perl's boolean evaluation when \hyperlink{parse_directives_strict-bool-eval}{\%strict-\/bool-\/eval} is enabled; the return value of this method is the same as that of any value when evaluated in a boolean context when \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval} is enabled (the default).

Prior to version 0.\+8.\+6, \hyperlink{namespace_qore}{Qore} implemented strict mathematical boolean evaluation by default (where any value must evaluate to a non-\/zero integer or floating-\/point value to be \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}), so this pseudo-\/method was implemented to provide the same functionality in qore. Note that as of qore 0.\+8.\+6, \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval} is the default.

\begin{DoxyReturn}{Returns}
\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}; this method is reimplemented in other types and will return \hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True} if the given expression has a value; the return value of this method is the same as that of any value when evaluated in a boolean context when \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval} is enabled (the default)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+N\+T}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} ($n.val())
    \hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}(\textcolor{stringliteral}{"%y: has a value\(\backslash\)n"}, $n);
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
use \hyperlink{operators_exists}{Exists Operator (exists)} to tell if an expression has a value or not
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}
\item \hyperlink{parse_directives_strict-bool-eval}{\%strict-\/bool-\/eval} 
\end{DoxyItemize}
\end{DoxySeeAlso}
