<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Определение количества последовательностей]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10177&amp;type=atom" />
	<updated>2014-11-20T22:07:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10177</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88531#p88531" />
			<content type="html"><![CDATA[<p>Да, я заметил. Еще раз спасибо. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Desire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30401</uri>
			</author>
			<updated>2014-11-20T22:07:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88531#p88531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88529#p88529" />
			<content type="html"><![CDATA[<p>Немного подредактировал.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-20T22:00:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88529#p88529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88528#p88528" />
			<content type="html"><![CDATA[<p>Спасибо! Работает.</p>]]></content>
			<author>
				<name><![CDATA[Desire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30401</uri>
			</author>
			<updated>2014-11-20T21:52:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88528#p88528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88527#p88527" />
			<content type="html"><![CDATA[<p>Вроде так:<br /></p><div class="codebox"><pre><code>String := &quot;-+-++---+--+-+-&quot;
SubString := &quot;-+-&quot;

MsgBox, % &quot;Без перекрытия — &quot; . Occurrence(String, SubString, 0)
       . &quot;`nС перекрытием — &quot; . Occurrence(String, SubString, 1)

Occurrence(String, SubString, overlap := 0)
{
   Occurrence := start := 0
   While start := InStr(String, SubString, 0, (overlap || A_Index = 1) ? ++start : start + StrLen(SubString))
      Occurrence++
   Return Occurrence
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-20T21:44:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88527#p88527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88525#p88525" />
			<content type="html"><![CDATA[<p>А вам не тяжело предложить оба варианта? Как если считать за одно вхождение и за два...</p>]]></content>
			<author>
				<name><![CDATA[Desire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30401</uri>
			</author>
			<updated>2014-11-20T21:11:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88525#p88525</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88524#p88524" />
			<content type="html"><![CDATA[<p>А на участке -+-+- считается, что две последовательности -+-, или одна?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-11-20T21:08:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88524#p88524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Определение количества последовательностей]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=88523#p88523" />
			<content type="html"><![CDATA[<p>Здравствуйте. Есть строка, которая состоит из &quot;<strong>+</strong>&quot; и &quot;<strong>-</strong>&quot;, например: </p><div class="codebox"><pre><code>-+-++---+--+-+-</code></pre></div><p>Подскажите, пожалуйста, как подсчитать количество последовательностей символов &quot;<strong>-+-</strong>&quot; и &quot;<strong>+--</strong>&quot;.</p><p>За ранее благодарю.</p>]]></content>
			<author>
				<name><![CDATA[Desire]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30401</uri>
			</author>
			<updated>2014-11-20T21:05:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=88523#p88523</id>
		</entry>
</feed>
