<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://bsd.neuroinf.jp/w/index.php?action=history&amp;feed=atom&amp;title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%3AStrloc_prefix</id>
	<title>テンプレート:Strloc prefix - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://bsd.neuroinf.jp/w/index.php?action=history&amp;feed=atom&amp;title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%3AStrloc_prefix"/>
	<link rel="alternate" type="text/html" href="https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Strloc_prefix&amp;action=history"/>
	<updated>2026-04-20T09:51:39Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Strloc_prefix&amp;diff=15840&amp;oldid=prev</id>
		<title>WikiSysop: ページの作成：「&lt;!-- -============================================================= - Strloc_prefix - Get prefix up to strloc or entire string -===========================================...」</title>
		<link rel="alternate" type="text/html" href="https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Strloc_prefix&amp;diff=15840&amp;oldid=prev"/>
		<updated>2012-12-01T11:55:04Z</updated>

		<summary type="html">&lt;p&gt;ページの作成：「&amp;lt;!-- -============================================================= - Strloc_prefix - Get prefix up to strloc or entire string -===========================================...」&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;
{{documentation}}&lt;br /&gt;
&amp;lt;!-- Add categories &amp;amp; interwikis to /doc subpage, not here! --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
[[Category:Templates with minimal expansion depth]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>