Hello,
# I don't know if Lgb applied this, but the best bet is to send in
# a real patch, because that is the easiest.
something like :
---
--- src/support/filetools.C.origThu Feb 3 22:17:46 2000
+++ src/support/filet
"Asger K. Alstrup Nielsen" <[EMAIL PROTECTED]> writes:
| > the patch should probably be (at filetools.C:909, in 1.1.4)
| >
| > last_dot = oldname.rfind('.');
| > if (last_dot < last_slash &&
| > last_slash != string::npos &&
| > last_dot < last_slash )
| >
> the patch should probably be (at filetools.C:909, in 1.1.4)
>
> last_dot = oldname.rfind('.');
> if (last_dot < last_slash &&
> last_slash != string::npos &&
> last_dot < last_slash )
> last_dot = string::npos;
>
> Should I send a true
Hello,
the patch should probably be (at filetools.C:909, in 1.1.4)
last_dot = oldname.rfind('.');
if (last_dot < last_slash &&
last_slash != string::npos &&
last_dot < last_slash )
last_dot = string::npos;
Should I send a true pat
Andre Poenitz <[EMAIL PROTECTED]> writes:
| > Silly question, what is that string::npos?
|
| This is the index of the last character in the string plus one.
| At least I think so ;-)
You thought wrong.
It is the maximum amount of chars possible amount of chars in a string
+ 1. It is often the
> Silly question, what is that string::npos?
This is the index of the last character in the string plus one.
At least I think so ;-)
Andre'
--
André Pönitz . [EMAIL PROTECTED]
Hello,
I just tried your patch, and it seems to work. But I couldn't get
to try it with /this.is.a/trickyfilename because lyx won't let me
load a file without a .lyx suffix.
Silly question, what is that string::npos?
Too bad your patch didn't make it to 1.1.4; it will be for 1.1.5.
C
> string ChangeExtension(string const & oldname, string const & extension,
> bool no_path)
> {
> string::size_type last_slash = oldname.rfind('/');
> string::size_type last_dot;
This is fine.
> if (last_slash != string::npos)
> last_dot = o