<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AgetTextSubstringSafe</id>
	<title>Ui::getTextSubstringSafe - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AgetTextSubstringSafe"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::getTextSubstringSafe&amp;action=history"/>
	<updated>2026-07-24T18:42:05Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ui::getTextSubstringSafe&amp;diff=15174&amp;oldid=prev</id>
		<title>imported&gt;StreetGT в 14:57, 20 мая 2017</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::getTextSubstringSafe&amp;diff=15174&amp;oldid=prev"/>
		<updated>2017-05-20T14:57:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns a substring of a specified length starting at a specified position. The result is guaranteed not to exceed the specified max length.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOTE: The &amp;#039;maxLength&amp;#039; parameter might actually be the size of the buffer that is returned. More research is needed. -CL69&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example:&amp;lt;br&amp;gt;// Condensed example of how Rockstar uses this function&amp;lt;br&amp;gt;strLen = UI::GET_LENGTH_OF_LITERAL_STRING(GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT());&amp;lt;br&amp;gt;subStr = UI::_GET_TEXT_SUBSTRING_SAFE(GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT(), 0, strLen, 63);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;--&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;#039;fm_race_creator.ysc&amp;#039;, line 85115:&amp;lt;br&amp;gt;// parameters modified for clarity&amp;lt;br&amp;gt;BOOL sub_8e5aa(char *text, int length) {&amp;lt;br&amp;gt;    for (i = 0; i &amp;amp;lt;= (length - 2); i += 1) {&amp;lt;br&amp;gt;        if (!GAMEPLAY::ARE_STRINGS_EQUAL(UI::_GET_TEXT_SUBSTRING_SAFE(text, i, i + 1, 1), &amp;#039; &amp;#039;)) {&amp;lt;br&amp;gt;            return FALSE;&amp;lt;br&amp;gt;        }&amp;lt;br&amp;gt;    }&amp;lt;br&amp;gt;    return TRUE;&amp;lt;br&amp;gt;}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.getTextSubstringSafe(text, position, length, maxLength);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;position:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;length:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;maxLength:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;String&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ui_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:UI API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;StreetGT</name></author>
	</entry>
</feed>