Re: How to get the length of a string?
Re: How to get the length of a string?
- Subject: Re: How to get the length of a string?
- From: Jim Correia <email@hidden>
- Date: Tue, 21 Aug 2001 14:02:04 -0400
At 1:20 PM -0300 8/21/01, Rainer Brockerhoff wrote:
If you're handling file paths, always use:
n = strlen([my_string UTF8String]);
This may be splitting hairs, but if you want a file system path
encoded string, you should use fileSystemRepresentation. Yes, today
on Mac OS X this is UTF8 encoded, but if you use this message your
code should be future proof.
Jim