<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nette Framework forum : Development of Nette Framework : Bug Reports : Utils\Strings use strlen?</title>
<link>https://forum.nette.org/en</link>
<description>Nette Framework forum</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
	<title>Utils\Strings use strlen? (Bug Reports)</title>
	<dc:creator>Jan Tvrdík</dc:creator>
	<link>https://forum.nette.org/en/28202#p185609</link>
	<guid isPermaLink="false">185609@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;That&apos;s intentional. Some UTF-8 string operations (such as startsWith) can be
implemented on byte-level (instead of on character level) which is a lot faster.
The current implementation is correct for all UTF-8 strings.&lt;/p&gt;
</description>
	<pubDate>Fri, 24 Feb 2017 16:52:22 +0100</pubDate>
</item>
<item>
	<title>Utils\Strings use strlen? (Bug Reports)</title>
	<dc:creator>majo</dc:creator>
	<link>https://forum.nette.org/en/28202#p185608</link>
	<guid isPermaLink="false">185608@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;In the method startsWith (endWith, findPrefix, after, pos .. etc) in class
Utils\Strings&lt;/p&gt;

&lt;p&gt;is used strlen? Why not self::strlen() when in this class exists ?&lt;/p&gt;

&lt;p&gt;strlen return the number of bytes, no number of characters… e.g.
UTF-8 string evaluate the improperly.&lt;/p&gt;

&lt;p&gt;(sorry for my english)&lt;/p&gt;
</description>
	<pubDate>Fri, 24 Feb 2017 16:48:40 +0100</pubDate>
</item>
</channel>
</rss>
