• 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: Create an NSCharacterSet constant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create an NSCharacterSet constant


  • Subject: Re: Create an NSCharacterSet constant
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 1 Nov 2009 23:44:12 -0800

On Sun, Nov 1, 2009 at 11:03 PM, John Joyce
<email@hidden> wrote:
> I see it as a useful thing to have predefined character sets that don't need
> to be managed.

So you just want more things like +whitespaceCharacterSet?  That makes sense.

> At the very least, I will probably submit a radar on adding locale-specific
> standard sets.
> The standard set is woefully Latin-centric.

> Many languages do not use whitespace the same way (generally as word
> boundaries).

> [snip]

> I know, some of this leads to things like tokenization.

Well, in that specific instance, you should not be doing word
splitting yourself.  You should instead use CFStringTokenizer.

> Point being, if we look beyond English and Western Europe, and consider how
> much of programming is pushing text around, it certainly seems like a
> logical expansion that would be of benefit to a lot of people.
> Maybe it's just me, not trying to hog the list.

At some point you have to decide that it isn't worth adding more API.
I certainly would not want NSCharacterSet to expose the power set of
all Unicode characters.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Create an NSCharacterSet constant (From: John Joyce <email@hidden>)
 >Re: Create an NSCharacterSet constant (From: Graham Cox <email@hidden>)
 >Re: Create an NSCharacterSet constant (From: John Joyce <email@hidden>)
 >Re: Create an NSCharacterSet constant (From: Kyle Sluder <email@hidden>)
 >Re: Create an NSCharacterSet constant (From: John Joyce <email@hidden>)

  • Prev by Date: Re: objectAtIndex
  • Next by Date: Unable to open Core Data documents
  • Previous by thread: Re: Create an NSCharacterSet constant
  • Next by thread: Re: Create an NSCharacterSet constant
  • Index(es):
    • Date
    • Thread