mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 08:47:18 +01:00
Docs: LazUtils/lazutf8. Updates ParamStrUTF8 topic to include additional description for arguments.
This commit is contained in:
parent
37f11d9720
commit
66e929e9d6
@ -263,7 +263,8 @@ Converts the UTF-8-encoded string to the Windows code page encoding Used by
|
|||||||
|
|
||||||
<element name="ParamStrUTF8">
|
<element name="ParamStrUTF8">
|
||||||
<short>
|
<short>
|
||||||
Converts the specified command line parameter to a UTF-8-encoded string.
|
Gets the specified command line parameter and converts it to a UTF-8-encoded
|
||||||
|
string.
|
||||||
</short>
|
</short>
|
||||||
<descr>
|
<descr>
|
||||||
<p>
|
<p>
|
||||||
@ -271,19 +272,43 @@ Converts the specified command line parameter to a UTF-8-encoded string.
|
|||||||
specified command line parameter to a UTF-8-encoded string. The
|
specified command line parameter to a UTF-8-encoded string. The
|
||||||
implementation for ParamStrUTF8 is OS- or platform-specific. For UNIX-like
|
implementation for ParamStrUTF8 is OS- or platform-specific. For UNIX-like
|
||||||
environments, SysToUTF8 is called to convert the value for the command line
|
environments, SysToUTF8 is called to convert the value for the command line
|
||||||
parameter at the position in Param. For Windows platforms like WinCE, the
|
parameter at the position in Param. For Windows platforms, the stub for the
|
||||||
stub for the Ansi or WideString version of ParamStr is called.
|
Ansi or WideString version of ParamStrUTF8 is called. ParamStrUTF8 is the
|
||||||
|
UTF-8-enabled counterpart to the ParamStr routine in RTL.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<var>Index</var> is the ordinal position for the requested parameter value.
|
||||||
|
Index should be in the range <b>0..<var>ParamCount</var></b>. Values in Index
|
||||||
|
outside this range cause an empty string ('') to be returned for a parameter
|
||||||
|
value.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
In most cases, the parameter at position <b>0</b> contains the name and
|
||||||
|
optional path to the executable file for the application. For cross-platform
|
||||||
|
compatibility, use the ExeName property in TCustomApplication to get the path
|
||||||
|
and name for the binary instead. Subsequent index positions contain any command
|
||||||
|
line arguments passed to the executable.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The return value contains the UTF-8-encoded string with the value for the
|
||||||
|
parameter at the specified position, or an empty string when not present.
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
<link id="SysToUTF8"/>
|
<link id="SysToUTF8"/>
|
||||||
|
<link id="#fcl.custapp.TCustomApplication.ExeName">TCustomApplication.ExeName</link>
|
||||||
|
<link id="#rtl.system.ParamStr">ParamStr</link>
|
||||||
</seealso>
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="ParamStrUTF8.Result">
|
<element name="ParamStrUTF8.Result">
|
||||||
<short>UTF-8-encoded value for the command line parameter.</short>
|
<short>
|
||||||
|
UTF-8-encoded value for the specified command line parameter.
|
||||||
|
</short>
|
||||||
</element>
|
</element>
|
||||||
<element name="ParamStrUTF8.Param">
|
<element name="ParamStrUTF8.Param">
|
||||||
<short>Ordinal position of the command line parameter.</short>
|
<short>
|
||||||
|
Ordinal position for the command line parameter retrieved in the routine.
|
||||||
|
</short>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="GetFormatSettingsUTF8">
|
<element name="GetFormatSettingsUTF8">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user