Search code examples
iphoneiosios5ios6

XCode base_convert


I am developing iOS application and I need base_convert function. Application is communicating with PHP server using base_convert, too. In PHP I use this:

base_convert($something,16,36) and base_convert($something,36,16)

I search for something like I use in PHP, but for Xcode (iOS application). Thank you.


Solution

  • there is a C++ implementation here:

    http://thinkdiff.net/mixed/base-conversion-handle-upto-36-bases/

    that will convert back and forth with bases up to 36. Not sure if you need more than that.