﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2290	String functions fails on a file	FireFox		"I wanted to replace a simple string on the file ""au3.keywords.properties"" (the one included in the SciTE4AutoIt3 package) and I realised that it replaced only one instance whereas there is actually two.

I have checked the count of this instance with the function StringSplit and it totally fails as it returns 34710.

Here is an example :

{{{
#include <Array.au3>

$sSciTEDir = RegRead(""HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt"", ""InstallDir"") & ""\SciTE\""

$sRead = FileRead($sSciTEDir & ""\Properties\au3.keywords.properties"")
;~ ConsoleWrite($sRead & @CrLf)
ConsoleWrite(StringLen($sRead) & @CrLf)

$aSplit = StringSplit($sRead, ""_singleton"")
;~ _ArrayDisplay($aSplit)

$sReplace = StringReplace($sRead, ""_singleton"", ""_singleton "" & ""_singletonW"")

ConsoleWrite(""replacements: "" & @extended & "", count: "" & $aSplit[0] & @CrLf)

;~ FileWrite($sSciTEDir & ""\Properties\au3.keywords.properties"", $sReplace)
}}}

Tested on lastest production and beta.

Running on Windows 7 SP1 32bits."	Bug	closed		AutoIt	3.3.9.4	None	No Bug	StringReplace StringSplit	
