当前位置: 首页 > news >正文

专门做ppt的网站叫什么wordpress需要开什么端口

专门做ppt的网站叫什么,wordpress需要开什么端口,企业网络营销为什么要选择外包?,360网站卖东西怎么做的做了不少时间的iOS开发了#xff0c;现在在阅读官方文档#xff0c;特意整理出来#xff0c;没任何技术含量#xff0c;纯粹是笔记形式#xff0c;希望对自己对大家有些帮助。 首先#xff0c;要理解NSString需要学习下字符编码#xff08;ASCii#xff0c;Unicode现在在阅读官方文档特意整理出来没任何技术含量纯粹是笔记形式希望对自己对大家有些帮助。   首先要理解NSString需要学习下字符编码ASCiiUnicodeUTF8的一些知识 可上维基百科搜索http://zh.wikipedia.org/zh-cn/UTF-8   现在开始分享iOS NSString的一些特性 NSString编码NSString的本质是基于Unicode编码的字符组成的数组 NSString创建如果你是用这种方式创建的那么temp对象是在编译时被创建并且在程序运行时一直存在永远不会被释放 NSString *temp Contrafibularity; 数据存储NSString不是设计用来存储任意序列的字节的如果想要这功能就用NSData 生成C String如果要用NSString产生一个C String建议使用UTF8String方法 const char *cString [Hello, world UTF8String];   在iOS中CString是基于UTF-8编码的注意此时你得到的cString只是一个临时对象当自动释放发生后该对象会失效如果要继续使用需要重新申请内存并做拷贝 从File和URL中读写NSString   当读或写一个NSString时需要明确指定字符编码如果无法获取到编码信息官方文档建议如下 1.Try stringWithContentsOfFile:usedEncoding:error: orinitWithContentsOfFile:usedEncoding:error: (or the URL-based equivalents).These methods try to determine the encoding of the resource, and if successful return by reference the encoding used. 2.If (1) fails, try to read the resource by specifying UTF-8 as the encoding. 3.If (2) fails, try an appropriate legacy encoding. Appropriate here depends a bit on circumstances;it might be the default C string encoding, it might be ISO or Windows Latin 1, or something else, depending on where your data are coming from. 4.Finally, you can try NSAttributedStrings loading methods from the Application Kit (such asinitWithURL:options:documentAttributes:error:).These methods attempt to load plain text files, and return the encoding used.They can be used on more-or-less arbitrary text documents, and are worth considering if your application has no special expertise in text. They might not be as appropriate for Foundation-level tools or documents that are not natural-language text.  NSScaner是一个字符串扫描工具非常好用运营一个官网的Demo应该就能做一些基本使用了 NSString *string Product: Acme Potato Peeler; Cost: 0.98 73\n\Product: Chef Pierre Pasta Fork; Cost: 0.75 19\n\Product:Chef Pierre Colander; Cost: 1.27 2\n; NSCharacterSet *semicolonSet; NSScanner *theScanner;NSString *PRODUCT Product:; NSString *COST Cost:;NSString *productName; float productCost;NSInteger productSold; semicolonSet [NSCharacterSet characterSetWithCharactersInString:;]; theScanner [NSScanner scannerWithString:string];while ([theScanner isAtEnd] NO) {if ([theScanner scanString:PRODUCT intoString:NULL] [theScanner scanUpToCharactersFromSet:semicolonSet intoString:productName] [theScanner scanString:; intoString:NULL] [theScanner scanString:COST intoString:NULL] [theScanner scanFloat:productCost] [theScanner scanInteger:productSold]){NSLog(Sales of %: $%1.2f, productName, productCost * productSold);} }  创建标准文件路径 NSString *path /usr/bin/./grep; NSString *standardizedPath [path stringByStandardizingPath]; // standardizedPath: /usr/bin/grep 补全相对路径 NSString *meHome [~me stringByExpandingTildeInPath]; // meHome /Users/me 获取Document目录 NSString *documentsDirectory; NSArray *paths NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);if ([paths count] 0) {documentsDirectory [paths objectAtIndex:0]; } 路径Component操作        文件名匹配搜索假设路径“~/Demo/”下有如下文件ReadMe.txt readme.html readme.rtf recondite.txt test.txt NSString *partialPath ~/Demo/r; NSString *longestCompletion; NSArray *outputArray;unsigned allMatches [partialPath completePathIntoString:longestCompletioncaseSensitive:NOmatchesIntoArray:outputArrayfilterTypes:NULL];// allMatches 3 // longestCompletion ~/Demo/re // outputArray (~/Demo/readme.html, ~/Demo/readme.rtf, ~/Demo/recondite.txt 转载于:https://www.cnblogs.com/mrfriday/p/3213518.html
http://www.pierceye.com/news/549236/

相关文章:

  • 网站备案 网站建设方案书云搜索app
  • 青岛网络推广建站民营医院建设网站
  • 罗湖住房和建设局网站wordpress调用内容代码
  • 网络logo设计优化设计七年级下册语文答案
  • 贵港网站seo安新网站建设
  • 网站怎么自己编辑模块创意网名大全
  • php的网站架构建设框架wordpress如何运行
  • 广州seo网站排名优化数码设计网站
  • 免费做视频相册的网站网站建设的功能描述
  • 网站建设方案浩森宇特alexa排名是什么意思
  • 网上手机网站建设计划书百度小说风云榜排名
  • 用js来做网站帝国cms这么做网站
  • 网站建设需求分析班级网站备案服务类型
  • 网站备案幕布照片怎么算合格北京专业网站开发
  • 浙江建设职业技术学院塘栖校区网站网络推广方法有几种
  • 呢图网站场建设封面长安镇做网站
  • 搜索关键词的网站黄山做网站
  • 网络建站系统去除wordpress主题头部作者信息
  • 鼓楼微网站开发番禺有经验的网站建设
  • 对网站建设心得进入公众号继续阅读怎么弄
  • 网站建设公司投诉电话可以先做网站后备案吗
  • 顺的品牌网站设计价位网站开发合同书
  • 用html5制作个人网站深圳百度国际大厦
  • 网络网站公司网站管理平台扩展插件
  • 个人小说网站怎么做把自己做的网页变成网站
  • led网站制作网站登录后不显示内容
  • 推广网站公司兴义市住房和城乡建设局网站
  • 营销网站建设的公司哪家好创建网站超链接
  • 苏州网站优化排名推广企业网站建设价格
  • 在线制作论坛网站wordpress建立好的网站