lipsum-cpp 0.5.4
A basic library written in C++ for generating placeholder Lorem Ipsum text.
Loading...
Searching...
No Matches
misc.inl File Reference

Miscellaneous functions of lipsum-cpp. More...

#include "core/internal.hpp"

Go to the source code of this file.

Namespaces

namespace  lipsum
 This is the main namespace of lipsum-cpp.

Functions

LIPSUM_API std::string lipsum::GenerateDefaultLipsumSentence ()
 Generate the beginning Lorem Ipsum sentence.
LIPSUM_API int lipsum::CountWords (const std::string &str)
 Count the number of words in a string.
LIPSUM_API int lipsum::CountSentenceFragments (const std::string &str)
 Count the number of sentence fragments in a string.
LIPSUM_API int lipsum::CountSentences (const std::string &str)
 Count the number of sentences in a string.
LIPSUM_API int lipsum::CountParagraphs (const std::string &str, Format format=Format::Plain)
 Count the number of paragraphs or elements in a string.
LIPSUM_API std::string lipsum::ConvertFormat (const std::string &str, Format format1=Format::Plain, Format format2=Format::HTML)
 Convert a string between two formats.

Detailed Description

Miscellaneous functions of lipsum-cpp.

This defines miscellaneous functions in lipsum-cpp, such as CountSentences(). This file is under the BSD Zero-Clause License.

Author
LambBread from github.com