Recipe 1.8. Processing a String One Character at a Time
摘要:
If you're processing an ASCII document, then each byte corresponds to one character. Use String#each_byte to yield each byte of a string as a number, which you can turn into a one-character string:[代码... 阅读全文
posted @ 2009-11-06 23:22 Ray Z 阅读(237) 评论(0) 推荐(0)
浙公网安备 33010602011771号