si_StripLF(char* buffer) { while ((buffer[PL_strlen(buffer)-1] == '\n') || (buffer[PL_strlen(buffer)-1] == '\r')) { buffer[PL_strlen(buffer)-1] = '\0';
si_StripLF(nsAutoString buffer) { PRUnichar c; while ((c=buffer.CharAt(buffer.Length())-1) == '\n' || c == '\r' ) { buffer.SetLength(buffer.Length()-1);
si_StripLF(char* buffer) {  while ((buffer[PL_strlen(buffer)-1] == '\n') || (buffer[PL_strlen(buffer)-1] == '\r')) {    buffer[PL_strlen(buffer)-1] = '\0';  }}