標準庫中的幾個有用的函式

2021-07-04 13:49:24 字數 683 閱讀 7368

(好幾天沒跟大家見了,這幾天忙著總結和學習新的知識呢)

一nsrange

一nspoint

一nssize

一nsrect

一nssting 和 nsmutablesting(字串)

nssting

- (bool) hasprefix: (nsstring *) astring;
*判斷字串是否以另乙個字元

- (bool) hassuffix: (nsstring *) astring;

- (nsrange) rangeofstring: (nsstring *) astring;`

2 . nsmutablesting

一nsarray 和 nsmutablearray(集合相關)

nsarray

nsmutablearray

nsstring *name;

while (name = [indicator nextobject])

for (nsstring *name1 in arr)  

一nsdiction 和 nsmutabledictionary(集合相關)

nsdiction

nsmutabledictionary

幾個有用的標準庫函式(持續更新)

字元操作函式 ctype.h 每個分類函式接受乙個包含字元值的整形引數。函式測試這個字元並返回乙個整型值,表示真或假 零為假,非零為真 函式 如果符合以下條件就返回真 isspace 空白字元1 isdigit 十進位制數字 0 9 islower 小寫字母 a z isupper 大寫字母 a z...

ASP中幾個有用的函式

原出處 江都資訊網論壇 function deletefile filename 刪除檔案 if filename then set fso server.createobject scripting.filesystemobject if fso.fileexists filename then ...

mysql中幾個有用的函式

1.from unixtime 作用 將mysql中以int 11 儲存的時間以 yyyy mm dd 格式來顯示。例 作用 將str1,str2.連線為字串。如有任何乙個引數為null 則返回值為 null。例 update video set playlink concat playlink,f...