Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
CPPhoneNumber - iPhone Development Wiki

CPPhoneNumber

From iPhone Development Wiki
Revision as of 06:41, 5 January 2010 by Dustin Howett (talk | contribs) (CPPhoneNumber! Yay!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CPPhoneNumber is a set of utility functions in AppSupport for handling phone numbers

Normalizing

Signature char *CPPhoneNumberCopyNormalized(char *);
Available in ? –

CPPhoneNumberCopyNormalized returns an allocated buffer containing a normalized copy of a phone number. You are responsible for freeing it.

extern char *CPPhoneNumberCopyNormalized(char *);

...
	char *pn = CPPhoneNumberCopyNormalized("+1 (555) 555-5555");
	printf("%s\n", pn); // 15555555555
	free(pn);
...

Header