parsing_data/quickref.tex
author Puneeth Chaganti <punchagan@fossee.in>
Wed, 17 Nov 2010 23:24:57 +0530
changeset 521 88a01948450d
parent 331 e3136f576acb
permissions -rw-r--r--
Merged heads.

Splitting a string on whitespace:\\
{\ex \lstinline|    str_var.split()|}

Splitting a string using a delimiter. Ex: ";" :\\
{\ex \lstinline|    str_var.split(";")|}

Stripping the whitespace around a string:\\
{\ex \lstinline|    str_var.strip()|}

Converting a string or float to int:\\
{\ex \lstinline|    int(var_name)|}

Converting a string or int into float:\\
{\ex \lstinline|    float(var_name)|}