インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

splitStrings()

   
Examples  
String words = "apple bear cat dog"; 
String list[] = splitStrings(words); 
// list[0] は"apple", list[1] は"bear", ... 
 
// もしくは、セパレータがスペースではない場合 
 
String words = "apple,bear,cat,dog"; 
String list[] = splitStrings(words, ','); 
 
// もしタブが間にあれば(データファイルでは一般的: 
// splitStrings(words, '\t'); 

Description  

文字のグループを分割し、文字の配列をつくり文字列として組み込むユーティリティ機能。もし分割したい文字が特定されていない場合は、空白スペースが分割される文字として使われる。

   
Syntax  
splitStrings(string)
splitStrings(string, char)
   
Returns   String[]
   
Usage   Web & Application
   
Related   String
splitInts()
splitFloats()
join()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas