mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:43:08 +00:00
Move Arch to irc module.
svn path=/trunk/; revision=13063
This commit is contained in:
parent
85ae2d98f2
commit
568b27baeb
40 changed files with 0 additions and 5 deletions
15
irc/ArchBlackmann/chomp.cpp
Normal file
15
irc/ArchBlackmann/chomp.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
// chomp.cpp
|
||||
// This file is (C) 2004 Royce Mitchell III
|
||||
// and released under the BSD & LGPL licenses
|
||||
|
||||
#include "chomp.h"
|
||||
|
||||
std::string chomp ( const std::string& s )
|
||||
{
|
||||
const char* p = &s[0];
|
||||
const char* p2 = &s[0] + s.size();
|
||||
while ( p2 > p && strchr("\r\n", p2[-1]) )
|
||||
p2--;
|
||||
return std::string ( p, p2-p );
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue