소스 검색

Doc StringJoin/Split/SplitEx + cleanup isxenum part.

Martijn Laan 10 달 전
부모
커밋
49bc894c08
1개의 변경된 파일47개의 추가작업 그리고 17개의 파일을 삭제
  1. 47 17
      ISHelp/isxfunc.xml

+ 47 - 17
ISHelp/isxfunc.xml

@@ -73,7 +73,9 @@ end;</pre></example>
       <function>
       <function>
         <name>SetupMessage</name>
         <name>SetupMessage</name>
         <prototype>function SetupMessage(const ID: TSetupMessageID): String;</prototype>
         <prototype>function SetupMessage(const ID: TSetupMessageID): String;</prototype>
-        <description><p>Returns the value of the specified message.</p></description>
+        <description><p>Returns the value of the specified message.</p>
+<p>TSetupMessageID is defined as:</p>
+<p>'msg' + the message name. Example: <i>SetupMessage(msgSetupAppTitle)</i></p></description>
         <example><pre>var
         <example><pre>var
   S: String;
   S: String;
 begin
 begin
@@ -937,6 +939,50 @@ end;</pre></example>
         <prototype>function TrimRight(const S: String): String;</prototype>
         <prototype>function TrimRight(const S: String): String;</prototype>
         <description><p>Trims trailing spaces and control characters from the given string S.</p></description>
         <description><p>Trims trailing spaces and control characters from the given string S.</p></description>
       </function>
       </function>
+      <function>
+        <name>StringJoin</name>
+        <prototype>function StringJoin(const Separator: String; const Values: TArrayOfString): String;</prototype>
+        <description><p>Joins two or more strings together separated by the given separator.</p></description>
+        <example><pre>var
+  S: String;
+begin
+  S := StringJoin(',', ['1', '2']);
+  // S = '1,2'
+end;
+</pre></example>
+        <seealso><p><link topic="isxfunc_StringSplit">StringSplit</link></p></seealso>
+      </function>
+      <function>
+        <name>StringSplit</name>
+        <prototype>function StringSplit(const S: String; const Separators: TArrayOfString; const Typ: TSplitType): TArrayOfString;</prototype>
+        <description><p>Splits the given string into substrings, using the given characters or strings to be used as separator. Empty substrings can be ignored.</p>
+<p>TSplitType is defined as:</p>
+<p><tt>TSplitType = (stAll, stExcludeEmpty, stExcludeLastEmpty);</tt></p></description>
+        <example><pre>var
+  A: array of String;
+begin
+  A := StringSplit('1,,2', [','], stExcludeEmpty);
+  // A = ['1','2']
+end;
+</pre></example>
+        <seealso><p><link topic="isxfunc_StringJoin">StringJoin</link><br />
+<link topic="isxfunc_StringSplitEx">StringSplitEx</link></p></seealso>
+      </function>
+      <function>
+        <name>StringSplitEx</name>
+        <prototype>function StringSplitEx(const S: String; const Separators: TArrayOfString; const Quote: Char; const Typ: TSplitType): TArrayOfString;</prototype>
+        <description><p>Splits the given string into substrings, using the given characters or strings to be used as separator. Empty substrings can be ignored. Use the Quote parameter to specify the start and end character of a quoted part of the string where separators are ignored.</p>
+<p>TSplitType is defined as:</p>
+<p><tt>TSplitType = (stAll, stExcludeEmpty, stExcludeLastEmpty);</tt></p></description>
+        <example><pre>var
+  A: array of String;
+begin
+  A := StringSplitEx('1,",",2', [','], '"', stAll);
+  // A = ['1','","','2']
+end;
+</pre></example>
+        <seealso><p><link topic="isxfunc_StringSplit">StringSplit</link></p></seealso>
+      </function>
     </subcategory>
     </subcategory>
     <subcategory>
     <subcategory>
       <function>
       <function>
@@ -3092,22 +3138,10 @@ end;</pre></example>
   </category>
   </category>
 </isxfunc>
 </isxfunc>
 <isxenum>
 <isxenum>
-  <enum>
-     <description>CurStep values</description>
-     <values>ssInstall, ssPostInstall, ssDone</values>
-  </enum>
-  <enum>
-     <description>CurPage values</description>
-     <values>wpWelcome, wpLicense, wpPassword, wpInfoBefore, wpUserInfo, wpSelectDir, wpSelectComponents, wpSelectProgramGroup, wpSelectTasks, wpReady, wpPreparing, wpInstalling, wpInfoAfter, wpFinished</values>
-  </enum>
   <enum>
   <enum>
      <description>Exec and ShellExec - ShowCmd values</description>
      <description>Exec and ShellExec - ShowCmd values</description>
      <values>SW_SHOW, SW_SHOWNORMAL, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_HIDE</values>
      <values>SW_SHOW, SW_SHOWNORMAL, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_HIDE</values>
   </enum>
   </enum>
-  <enum>
-     <description>TMsgBoxType</description>
-     <values>mbInformation, mbConfirmation, mbError, mbCriticalError</values>
-  </enum>
   <enum>
   <enum>
      <description>MsgBox - Buttons flags</description>
      <description>MsgBox - Buttons flags</description>
      <values>MB_OK, MB_OKCANCEL, MB_ABORTRETRYIGNORE, MB_YESNOCANCEL, MB_YESNO, MB_RETRYCANCEL, MB_DEFBUTTON1, MB_DEFBUTTON2, MB_DEFBUTTON3, MB_SETFOREGROUND</values>
      <values>MB_OK, MB_OKCANCEL, MB_ABORTRETRYIGNORE, MB_YESNOCANCEL, MB_YESNO, MB_RETRYCANCEL, MB_DEFBUTTON1, MB_DEFBUTTON2, MB_DEFBUTTON3, MB_SETFOREGROUND</values>
@@ -3120,9 +3154,5 @@ end;</pre></example>
      <description>Reg* - RootKey values (also see the <link topic="registrysection" window="main">[Registry]</link> section documentation)</description>
      <description>Reg* - RootKey values (also see the <link topic="registrysection" window="main">[Registry]</link> section documentation)</description>
      <values>HKEY_AUTO, HKEY_AUTO_32, HKEY_AUTO_64,<br />HKEY_CLASSES_ROOT, HKEY_CLASSES_ROOT_32, HKEY_CLASSES_ROOT_64,<br />HKEY_CURRENT_USER, HKEY_CURRENT_USER_32, HKEY_CURRENT_USER_64,<br />HKEY_LOCAL_MACHINE, HKEY_LOCAL_MACHINE_32, HKEY_LOCAL_MACHINE_64,<br />HKEY_USERS, HKEY_USERS_32, HKEY_USERS_64,<br />HKEY_PERFORMANCE_DATA,<br />HKEY_CURRENT_CONFIG, HKEY_CURRENT_CONFIG_32, HKEY_CURRENT_CONFIG_64,<br />HKEY_DYN_DATA,<br />HKA, HKA32, HKA64, HKCR, HKCR32, HKCR64, HKCU, HKCU32, HKCU64, HKLM, HKLM32, HKLM64, HKU, HKU32, HKU64, HKCC, HKCC32, HKCC64</values>
      <values>HKEY_AUTO, HKEY_AUTO_32, HKEY_AUTO_64,<br />HKEY_CLASSES_ROOT, HKEY_CLASSES_ROOT_32, HKEY_CLASSES_ROOT_64,<br />HKEY_CURRENT_USER, HKEY_CURRENT_USER_32, HKEY_CURRENT_USER_64,<br />HKEY_LOCAL_MACHINE, HKEY_LOCAL_MACHINE_32, HKEY_LOCAL_MACHINE_64,<br />HKEY_USERS, HKEY_USERS_32, HKEY_USERS_64,<br />HKEY_PERFORMANCE_DATA,<br />HKEY_CURRENT_CONFIG, HKEY_CURRENT_CONFIG_32, HKEY_CURRENT_CONFIG_64,<br />HKEY_DYN_DATA,<br />HKA, HKA32, HKA64, HKCR, HKCR32, HKCR64, HKCU, HKCU32, HKCU64, HKLM, HKLM32, HKLM64, HKU, HKU32, HKU64, HKCC, HKCC32, HKCC64</values>
   </enum>
   </enum>
-  <enum>
-     <description>TSetupMessageID</description>
-     <values>Use 'msg' + the message name. Example: <i>SetupMessage(msgSetupAppTitle)</i></values>
-  </enum>
 </isxenum>
 </isxenum>
 </isxhelp>
 </isxhelp>