[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: SEarch across files (long & boring for non-programmers)



≪	Harry asks: ≪What is that three-byte sixteenth note doing? ≫

≪	It's a part of a trick I use to perform right-side parsing, i.e.,
to grab a given number of characters from the end of a string, when the
contents of the string are unknown. ≫ --Carl Distefano


Hi, Carl. I use that trick too (in fact, it's in the v3 !XSE crossfile
search I kept announcing the other day). But: Have you considered
appending a func symbol to the string instead of an ascii char? I use
func CO or NO for the purpose. Safer and works fine (i.e., no tsouris
about the number of bytes per char, etc.) in v3.57:

	{sv12,+X CO }{sv86,CO }{sx13,{is00}+{is86}}
	{xs13,12,14,12,16}{xs12,86,13,86,14}

In this case, the final char in {is00} is {is13}. 	--a

============================= adpFisher  nyc