zoukankan      html  css  js  c++  java
  • Delphi中优秀的字符串分割函数

    function SplitString(Source, Deli: string ): TStringList;stdcall;
                var
                EndOfCurrentString: byte;
                StringList:TStringList;
                begin
                StringList:=TStringList.Create;
                while Pos(Deli, Source)>0 do
                begin
                EndOfCurrentString := Pos(Deli, Source);
                StringList.add(Copy(Source, 1, EndOfCurrentString - 1));
                Source := Copy(Source, EndOfCurrentString + length(Deli), length(Source) - EndOfCurrentString);
                end;
                Result := StringList;
                StringList.Add(source);
                end;

  • 相关阅读:
    easyui-filebox上传图片到阿里
    easyUI-filebox图片上传和预览
    抓网页__第3方库选择_01
    HttpClient示例01
    JSON01_资料
    指定library路径
    Jni_Linux_01_转
    JNI简单步骤01
    JDK_环境变量
    Redis_01
  • 原文地址:https://www.cnblogs.com/jieke/p/2855813.html
Copyright © 2011-2022 走看看