• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the length of a string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to get the length of a string?
      • From: Aki Inoue <email@hidden>
References: 
 >Re: How to get the length of a string? (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: NSOutline view with draggable/reorderable items?
  • Next by Date: Menu Mud
  • Previous by thread: Re: How to get the length of a string?
  • Next by thread: Re: How to get the length of a string?
  • Index(es):
    • Date
    • Thread