From 538bc2149631e989e4806165632c5460c3514670 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 16 Jul 2010 01:57:08 +0000 Subject: oracle refactor, oracle vest directions, sparse_vector git-svn-id: https://ws10smt.googlecode.com/svn/trunk@280 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/stringlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'decoder/stringlib.h') diff --git a/decoder/stringlib.h b/decoder/stringlib.h index eac1dce6..6bb8cff0 100644 --- a/decoder/stringlib.h +++ b/decoder/stringlib.h @@ -1,4 +1,5 @@ -#ifndef _STRINGLIB_H_ +#ifndef CDEC_STRINGLIB_H_ +#define CDEC_STRINGLIB_H_ #include #include @@ -14,7 +15,7 @@ void ParseTranslatorInput(const std::string& line, std::string* input, std::stri struct Lattice; void ParseTranslatorInputLattice(const std::string& line, std::string* input, Lattice* ref); -inline const std::string Trim(const std::string& str, const std::string& dropChars = " \t") { +inline std::string Trim(const std::string& str, const std::string& dropChars = " \t") { std::string res = str; res.erase(str.find_last_not_of(dropChars)+1); return res.erase(0, res.find_first_not_of(dropChars)); -- cgit v1.2.3