Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
strutil.h 529 B
// Copyright 2010 Sean Gerrish
// All Rights Reserved
//
// Author: Sean Gerrish
//
// Defines a number of string functions.

#ifndef _STRUTIL_H__
#define _STRUTIL_H__

#include <string>
#include <vector>
//class string;
//template <class T>
//class vector<T>;

using namespace std;

string StringPrintf(const char* format, ...);

void SplitStringUsing(const string& s1,
		      const char* delimiter,
		      vector<string>* result);

string JoinStringUsing(const vector<string>& parts,
		       const char* delimiter);

#endif