summaryrefslogtreecommitdiff
path: root/indra/llcommon/llformat.h
blob: 7079656b72ebf60c37621fd639aa4153b9ac3c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** 
 * @file llformat.h
 * @date   January 2007
 * @brief string formatting utility
 *
 * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLFORMAT_H
#define LL_LLFORMAT_H

#include <string>

// Use as follows:
// llinfos << llformat("Test:%d (%.2f %.2f)", idx, x, y) << llendl;
//
// *NOTE: buffer limited to 1024, (but vsnprintf prevents overrun)
// should perhaps be replaced with boost::format.

std::string llformat(const char *fmt, ...);

#endif // LL_LLFORMAT_H