XCode base_convert [英] XCode base_convert

查看:73
本文介绍了XCode base_convert的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iOS应用程序,我需要base_convert函数。应用程序也使用base_convert与PHP服务器通信。在PHP中我使用:

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)

我搜索的是像我在PHP中使用的东西,但是用于Xcode(iOS应用程序)。
谢谢。

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

推荐答案

这里有一个C ++实现:

there is a C++ implementation here:

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

将以36为基础来回转换。不确定是否需要更多。

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

这篇关于XCode base_convert的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆