<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://novawiki.app/index.php?action=history&amp;feed=atom&amp;title=%ED%8B%80%3AStrloc_prefix</id>
	<title>틀:Strloc prefix - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://novawiki.app/index.php?action=history&amp;feed=atom&amp;title=%ED%8B%80%3AStrloc_prefix"/>
	<link rel="alternate" type="text/html" href="https://novawiki.app/index.php?title=%ED%8B%80:Strloc_prefix&amp;action=history"/>
	<updated>2026-04-13T13:57:15Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://novawiki.app/index.php?title=%ED%8B%80:Strloc_prefix&amp;diff=131042&amp;oldid=prev</id>
		<title>NovaAdmin: DCWiki 복구: 최신본 이식</title>
		<link rel="alternate" type="text/html" href="https://novawiki.app/index.php?title=%ED%8B%80:Strloc_prefix&amp;diff=131042&amp;oldid=prev"/>
		<updated>2026-01-08T18:05:15Z</updated>

		<summary type="html">&lt;p&gt;DCWiki 복구: 최신본 이식&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--&lt;br /&gt;
-=============================================================&lt;br /&gt;
- Strloc_prefix - Get prefix up to strloc or entire string&lt;br /&gt;
-=============================================================&lt;br /&gt;
--                              (see NOTES at bottom)&lt;br /&gt;
--&amp;gt;{{#ifexpr: {{{strloc|7}}} &amp;gt; 0&lt;br /&gt;
  | {{padleft:|{{#expr:{{{strloc|7}}} }}|{{{1}}}}}&lt;br /&gt;
  | {{{1}}}&amp;lt;!--too long or strloc &amp;lt;= 0 (string not found) --&amp;gt;&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--NOTES&lt;br /&gt;
--&lt;br /&gt;
-- NOTE A1: This template gets the prefix of a string up to&lt;br /&gt;
--      length strloc, or the entire string when strloc &amp;lt;= 0.&lt;br /&gt;
--      It allows the location strloc to be a variable amount&lt;br /&gt;
--      such as the result of a string search, because strloc&lt;br /&gt;
--      is used twice: once to check if the entire string will&lt;br /&gt;
--      be the result, or a 2nd time to limit the length of&lt;br /&gt;
--      string extracted to length strloc. Hence, if strloc is&lt;br /&gt;
--      set by a complex search or formula, then the use of&lt;br /&gt;
--      this template will be about twice as fast as coding the&lt;br /&gt;
--      logic directly.&lt;br /&gt;
--&lt;br /&gt;
-- NOTE N2: The expansion depth of this template is 2 levels,&lt;br /&gt;
--      with 1 level for being a template, and the 2nd level&lt;br /&gt;
--      needed to check the value of length strloc.&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--HISTORY:&lt;br /&gt;
--07Feb2011 Created for string-prefix copy 2x times as fast.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{설명문서}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>NovaAdmin</name></author>
	</entry>
</feed>