• 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
Radix Cocoa Class: Int Binary Value to Char String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Radix Cocoa Class: Int Binary Value to Char String


  • Subject: Radix Cocoa Class: Int Binary Value to Char String
  • From: Jordan Evans <email@hidden>
  • Date: Fri, 6 Jan 2006 10:19:45 -0800 (PST)

sherm wrote:

|Or, if you need to avoid messaging entirely, and a
char* string is
|sufficient:
|
|        char *foo;
|        retCode = asprintf(&foo, "%u",
anUnsignedInt);
|        if (NULL != foo) {
|                // Do stuff with foo
|                free(foo);
|        }

I'm really looking for the internal way that the
search is done.

Say I have a multibase string, where the string is
three digits long.  The most significant digit is base
ten, the second most significant digit is base 16 and
the first digit is base 8.  The class that I provided
is a draft of what will find any sequence according
the situation I just explained with multibase strings,
but it's really an algorithm that would be best for
producing all results, which is fine, but I need one
that produces one result.  So, that's why I need a
very fast algorithm that turns a integer value into a
string, so I can integrate with this drafted Radix
class.







__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Radix Cocoa Class: Int Binary Value to Char String
      • From: Camillo Lugaresi <email@hidden>
  • Prev by Date: Re: NSSearchField - detect loss of focus
  • Next by Date: WebView's mainframe returns nil during WindowDidLoad?
  • Previous by thread: Checkbox Array and Bindings
  • Next by thread: Re: Radix Cocoa Class: Int Binary Value to Char String
  • Index(es):
    • Date
    • Thread