author | anand |
Thu, 11 Nov 2010 00:03:57 +0530 | |
changeset 472 | fcdec2d28c9a |
parent 331 | e3136f576acb |
permissions | -rw-r--r-- |
331 | 1 |
Splitting a string on whitespace:\\ |
2 |
{\ex \lstinline| str_var.split()|} |
|
238
c507e9c413c6
Converted the parsing_data into new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
3 |
|
331 | 4 |
Splitting a string using a delimiter. Ex: ";" :\\ |
5 |
{\ex \lstinline| str_var.split(";")|} |
|
238
c507e9c413c6
Converted the parsing_data into new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
|
331 | 7 |
Stripping the whitespace around a string:\\ |
8 |
{\ex \lstinline| str_var.strip()|} |
|
238
c507e9c413c6
Converted the parsing_data into new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
9 |
|
331 | 10 |
Converting a string or float to int:\\ |
11 |
{\ex \lstinline| int(var_name)|} |
|
12 |
||
13 |
Converting a string or int into float:\\ |
|
14 |
{\ex \lstinline| float(var_name)|} |
|
15 |