getting-started-strings/quickref.tex
author anand
Thu, 11 Nov 2010 02:47:48 +0530
changeset 479 9c2e9213898c
parent 436 e62bc810999c
permissions -rw-r--r--
checklist OK for `dictionaries`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     1
Creating a string:\\
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     2
{\ex \lstinline|    s = ``Hello World''|} -- Single quotes and triple
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     3
quotes can also be used.  
313
b9b7bfce773e Getting started with strings LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     4
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     5
Accessing individual elements:\\
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     6
{\ex \lstinline|   s[5]|} -- Elements can be accessed with their index
313
b9b7bfce773e Getting started with strings LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     7
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     8
Strings are immutable.