// // Copyright 2009 Illumina, Inc. // // This software is covered by the "Illumina Genome Analyzer Software // License Agreement" and the "Illumina Source Code License Agreement", // and certain third party copyright/licenses, and any user of this // source file is bound by the terms therein (see accompanying files // Illumina_Genome_Analyzer_Software_License_Agreement.pdf and // Illumina_Source_Code_License_Agreement.pdf and third party // copyright/license notices). // // /// \file /// \author Ivan Mikoulitch /// #ifndef __UTILS_H #define __UTILS_H #include "stdafx.h" static ostringstream to_string_ss; template inline string to_string(T val) { to_string_ss.str(""); to_string_ss << val; return to_string_ss.str(); } inline void ToUpper(char * const buffer) { char* pch = buffer; char ch = *pch; while(ch) { if (ch<='z'&&ch>='a') *pch=ch-32; ch=*(++pch); } return; } #endif