原文:
http://lovebirdegg.co.tv/2010/04/how-to-reverse-a-nsstring/
some time you want to recerse a nsstring
for example:
"你好"to"好你"
i Searched the api but have no result,the method above can solute it
NSString *content = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
int len = [content length];
// Auto released string
NSString * reversedStr = [[NSMutableString alloc] init];
// Probably woefully inefficient...
while (len > 0)
[reversedStr appendString:
[NSString stringWithFormat:@"%C", [content characterAtIndex:--len]]];
NSLog(reversedStr);
分享到:
相关推荐
Introduction to Reverse Engineering Software.rar
Now you’ve gained a basic understanding of how to maneuver around the debugger, it’s time to take a step down the executable Jenga tower and explore the 1s and 0s that make up your source code....
Nothing is Secret: Learn how to use DTrace, a dynamic tracing framework, and how to write D scripts to query anything you were ever curious about on your macOS machine. Case Studies: Quickly find ...
Intro.to.Reverse.Engineering.chm
标题 "A-program-to-reverse-a-string-word-by-word" 指涉的是一个程序,这个程序的功能是逐词反转字符串。在计算机科学和编程领域,字符串处理是常见的任务之一,而这个程序聚焦于一种特殊的字符串操作:按单词进行...
In Linux, how to use od to dump binary file into HEX od -An -t x1 -v a.out -A n,不要印address -t x1,格式用hex,每次1byte ...How to reverse the hexdump output to binary xxd -r -p a.txt > q.out
Nothing is Secret: Learn how to use DTrace, a dynamic tracing framework, and how to write D scripts to query anything you were ever curious about on your macOS machine. Case Studies: Quickly find and ...
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
加花器绝对好用Themida is a powerful software protection system designed for software developers who wish to protect their applications against advanced reverse engineering and software cracking....
Images of masked hackers stealing bank accounts and credit cards may come to mind, but for this book, reverse engineering really is just debugging without source code — which in turn helps you gain a...
Reverse words in a string-leetcode
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
本书向您展示了如何打开Xbox,对其进行修改(从外观上的LED颜色更改,安装新电源到添加USB连接器),以及进行必要的更改以使Linux在其上运行。
HOW TO PREPARE FOR REVERSE ENGINEERING HOW TO REVERSE ENGINEER UNDERSTANDING CODE GENERATION PATTERNS HOW WINDOWS NT PROVIDES DEBUGGING INFORMATION HOW TO DECIPHER THE PARAMETERS PASSED TO AN ...
本书介绍了Linux和Microsoft Windows下的反向工程。
you'll learn about common protocol structures, cryptography, and protocol security, and how to reverse engineer code with IDA Pro, ILSpy, and Javasnoop. Part III focuses on finding and ...