From 662de4b9a254fe5da228c93334549b7fcf9e2f7d Mon Sep 17 00:00:00 2001 From: Tony Kappen Date: Mon, 1 Oct 2018 23:01:37 -0400 Subject: [PATCH] implement utility functions: issue #99 --- C++/include/utils/data_validation.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/C++/include/utils/data_validation.hpp b/C++/include/utils/data_validation.hpp index a844b63a..0627fa88 100644 --- a/C++/include/utils/data_validation.hpp +++ b/C++/include/utils/data_validation.hpp @@ -1,5 +1,7 @@ /* - Various utility functions used for data validation + Utility Functions for Data Validation + to_upper_case: + Takes a string input and returns a string output */ #include #include @@ -9,7 +11,8 @@ #define LOW_A 97 #define LOW_Z 122 - +/*Takes a string input and returns a string output +The string will have all its alphabetical characters in upper case.*/ std::string to_upper_case(std::string &s){ std::string upper; for(int i = 0; i