Article Preview
Buy Now
COLUMN
String Theory
Working with strings
Issue: 3.5 (May/June 2005)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 18,465
Starting Page Number: 30
Article Number: 3512
Resource File(s):
3512.zip Updated: 2013-03-11 19:07:58
Related Web Link(s):
http://www.rbdeveloper.com/browse/1.1/1005/
Excerpt of article text...
Perhaps it's because I'm a writer and fascinated by text, but strings have always been my favorite data structure. Unlike more abstract data structures like arrays or classes, strings usually contain human-understandable data. They don't have to, of course -- you can store any kind of data you'd like in a string (even a picture) -- but for the most part, strings contain text you want to manipulate. That makes strings a little easier for the beginner to get a handle on. However, strings are so basic that they are rarely discussed. Often, the beginner is afraid to ask obvious questions and thus stumbles blindly. So here's a little refresher course in string manipulation.
The Basics
REALbasic provides many powerful string routines. Most are similar to those in other languages and their functions are fairly evident. For example, the
len
function returns the number of characters in a string.
...End of Excerpt. Please purchase the magazine to read the full article.