emilib
emilib
word_wrap.hpp
1
// By Emil Ernerfeldt 2015-2016
2
// LICENSE:
3
// This software is dual-licensed to the public domain and under the following
4
// license: you are granted a perpetual, irrevocable license to copy, modify,
5
// publish, and distribute this file as you see fit.
6
7
#pragma once
8
9
#include <functional>
10
#include <string>
11
#include <vector>
12
13
namespace
emilib
{
14
15
using
CalcWidth = std::function<float(const std::string& text)>;
16
31
std::vector<std::string> word_wrap(
32
const
std::string& text,
33
float
max_width,
34
const
CalcWidth& calc_width);
35
36
void
unit_test_word_wrap();
37
38
}
// namespace emilib
emilib
Definition:
coroutine.hpp:18
Generated by
1.8.13