findstr doesn't always find



I'm converting 300+ MSVC6 projects to VS2005 and fighting with .def
files (hooray for APIs and customers !) and the changes in mangled
names (particularly for CString :-) -- I've been depending on findstr
for much of the analysis, and just today found a case where the search
string wasn't always found. The string in question is:

?Initialize@CYpsBrowseIncludeDataDlg@@QAEXW4BrowseType@1@AAV?
$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@

Note that that's not a full mangled name; I haven't found the actual
limit, but have taken to truncating strings longer than 115 chars as
findstr fails somewhere beyond that -- trivia. I'm launching findstr
as follows:

findstr /g:SR_req'd *def

The lengthy mangled name is one of 100 or so in the file SR_req'd (the
contents of which, incidentally, are sorted) -- it's about 40 lines
into that file (a collection of mangled names, all truncated at column
115). The subdir in which I run findstr has 357 *.def files, one of
which does contain that string.

If I truncate SR_req'd down to a mere 44 lines, then that mangled
name is found.

In the 100+ line /g:file case, numerous other matches are encountered
(it's not like nothing is found), including items both before and
after the not-found line -- I've not yet found rhyme or reason to what
is found and what is not.

I've got cygwin installed, so I'll see how its grep holds up.

Thoughts ?
Jon

.



Relevant Pages

  • Re: Auto truncate a string to be inserted to SQL table
    ... some of the database settings that correspond to SET options are essentially worthless as they ... >> truncating the string and not returning any errors. ... >>> Actually what I want to do is truncate the string using any method at MSSQL ... The app will insert record to SQL table at the ...
    (microsoft.public.sqlserver.programming)
  • Re: findstr doesnt always find
    ... files (hooray for APIs and customers!) and the changes in mangled ... string wasn't always found. ... findstr fails somewhere beyond that -- trivia. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: function with given range attribute as argument
    ... function str2sulv(s: string) return std_ulogic_vector is ... bits 1 to p-1 of the vector are valid. ... a vector of exactly that length, padding or truncating as required. ... DOULOS - Developing Design Know-how ...
    (comp.lang.vhdl)
  • Re: hex conversion
    ... You should be truncating the ... string ConvertDecToBaseN ... that is much longer than 8 digits. ... you'll note that the method I posted doesn't use a nullable type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SQLOLEDB may truncate inserted strings
    ... When my connection ... > string is thorugh ADO I end up truncating the first two fields but not ...
    (perl.dbi.users)

Loading