Jump to content

Bug In 'replace In Files'


Recommended Posts

There is a bug in this IDE function.

 

On several places the replacement is done incorrectly.

 

example

 

I wanted to replace "sampleArr[" in "asampleArr" throughout every occurence

 

This went well in many places but some got mixed up

 

original

//unsigned char sampleArr[MAXPULSES]={68,57,132, etc

 

after replacement

//unsigned chasampleArrArr[MAXPULSES]={68,57,132,

Link to post
Share on other sites

Dave

if you put this in a file and try to replace 'sampleArr' in 'asampleArr' using that function you will get your mess!

 

I know: rubbish in, rubbish out but anyway... :D

 

 

IDE version 6.60

edit, replace in files,

containing text sampleArr

replace with asampleArr

no boxes checked exept 'search in subdirs'

 

unsigned char sampleArr[MAXPULSES]={196,57,32,59,34,25,34,25,34,57,66,25,34,27,32,27,34,25,34,27,66,57,34,27,3
2,27,34,25,34,27,32,27,66,59,32,27,66,255,255};


// RC5
//unsigned char sampleArr[MAXPULSES]={66,57,68,57,68,57,132,57,66,57,68,55,68,57,66,57,68,121,132,57,68,121,68,2
55,255,255};
//RC5	00001	00016	00054

//unsigned char sampleArr[MAXPULSES]={66,57,132,123,132,57,66,57,68,55,68,59,64,59,68,121,130,57,68,121,68,255,2
55};
//RC5	00000	00016	00006

unsigned char sampleArr[MAXPULSES]={68,57,66,59,68,55,132,57,68,57,66,57,68,55,68,57,66,123,132,57,66,123,68,2
55,255,255};
//RC5	00001	00016	00022

unsigned char sampleArr[MAXPULSES]={68,57,132,121,134,55,68,57,66,59,68,55,68,57,66,123,132,57,66,123,68,255,2
55};
//RC5	00000	00017	00054



//RC6
unsigned char sampleArr[MAXPULSES]={196,57,32,59,36,23,34,25, 34,57,66,25,34,25,36,23,36,25,34,25,68,57,34,25,36,23,36,23,36,25,34,25,68,57,36
,23,68,255,255};
//RC6	00001	00004	00009

unsigned char sampleArr[MAXPULSES]={194,57,34,57,36,23,36,23,100,89,34,25,34,25,34,27,32,27,66,59,34,25,34,25,
34,27,32,27,34,25,66,59,34,25,66,255};
//RC6	00000	00004	00009

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...