Newer
Older
Import / research / framework / source / StringUtilities.cpp
@John Ryland John Ryland on 22 Dec 2020 421 bytes import NUC files
/************************************************
*
*  String Utilities
*  Copyright (C) 2020
*  John Ryland
*  All rights reserved
*
************************************************/
#include "StringUtilities.hpp"

namespace StringUtilities
{
    std::string removeCRLF(std::string aLine)
    {
        if (aLine[aLine.size()-1] == '\n')
            return aLine.substr(0, aLine.size()-1);
        return aLine;
    }
}