'SplitString'에 해당되는 글 1건

  1. 2010.07.16 String을 토큰으로 String을 분리하여 Array로 저장 2
public static Array Splits(String src, String tocken)
{
int index = 0;
ArrayList result = new ArrayList();
while((index = src.IndexOf(tocken)) != -1)
{
result.Add(src.Substring(0, index));
src = src.Substring(index + tocken.Length);
}
result.Add(src);
return result.ToArray();
}

 

'C#' 카테고리의 다른 글

C# String NGram 분할  (0) 2010.08.04
Posted by NuBiFoRM :