Sha256: d54a6b8d3395cbf1e15541c72caaa34322bb8f670594eb4dd02592d37ccdde95

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __XOT_STRING_H__
#define __XOT_STRING_H__


#include <stdarg.h>
#include <string>


namespace Xot
{


	typedef std::string String;


	String stringf (const char* format, ...);

	String stringf (const char* format, va_list args);

	template <typename T> String to_s (const T& val);


}// Xot


#define XOT_STRINGF(format, result) \
	Xot::String result;								\
	do \
	{ \
		if (format) \
		{ \
			va_list args; \
			va_start(args, format); \
			result = Xot::stringf(format, args); \
			va_end(args); \
		} \
	} \
	while (false)


#endif//EOH

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xot-0.1.6 include/xot/string.h
xot-0.1.5 include/xot/string.h
xot-0.1.4 include/xot/string.h