![]() |
Faker C++
|
Classes | |
| struct | Author |
Enumerations | |
| enum class | BranchIssueType { WithoutIssueNumber , WithIssueNumber } |
Functions | |
| FAKER_CXX_EXPORT std::string | branch (std::optional< BranchIssueType > issueType=std::nullopt, unsigned maxIssueNum=100) |
| Returns a random branch name. | |
| FAKER_CXX_EXPORT std::string | commitDate (unsigned years=15) |
| Generates a random date in form of string. | |
| FAKER_CXX_EXPORT std::string | commitEntry (std::optional< unsigned > dateYears=std::nullopt, std::optional< unsigned > shaLength=std::nullopt, Locale locale=Locale::en_US) |
| Generates a random commit entry in form of string. | |
| FAKER_CXX_EXPORT std::string | commitMessage () |
| Generates a random commit message. | |
| FAKER_CXX_EXPORT std::string | commitSha (unsigned length=40) |
| Returns a random SHA hash. | |
|
strong |
| FAKER_CXX_EXPORT std::string faker::git::branch | ( | std::optional< BranchIssueType > | issueType = std::nullopt, |
| unsigned | maxIssueNum = 100 ) |
Returns a random branch name.
| issueType | The optional branch issue type. |
| maxIssueNum | The maximum issue number in branch name. Defaults to `100`. |
| FAKER_CXX_EXPORT std::string faker::git::commitDate | ( | unsigned | years = 15 | ) |
Generates a random date in form of string.
| years | The range of years the date may be in the past. Defaults to `15`. |
| FAKER_CXX_EXPORT std::string faker::git::commitEntry | ( | std::optional< unsigned > | dateYears = std::nullopt, |
| std::optional< unsigned > | shaLength = std::nullopt, | ||
| Locale | locale = Locale::en_US ) |
Generates a random commit entry in form of string.
| dateYears | The range of years the date may be in the past. Defaults to `15`. |
| shaLength | The length of output SHA hash. Defaults to `40`. |
| locale | The locale. Defaults to `Locale::en_US`. |
| FAKER_CXX_EXPORT std::string faker::git::commitMessage | ( | ) |
Generates a random commit message.
| FAKER_CXX_EXPORT std::string faker::git::commitSha | ( | unsigned | length = 40 | ) |
Returns a random SHA hash.
| length | The length of output SHA hash. Defaults to `40`. |