-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor String data Signed-off-by: Uilian Ries <[email protected]> * Add String Data Signed-off-by: Uilian Ries <[email protected]> * update tests Signed-off-by: Uilian Ries <[email protected]> * move all to string data header Signed-off-by: Uilian Ries <[email protected]> * remove string data from cmake file Signed-off-by: Uilian Ries <[email protected]> --------- Signed-off-by: Uilian Ries <[email protected]>
- Loading branch information
1 parent
dc9ff1c
commit 0a07883
Showing
12 changed files
with
140 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#pragma once | ||
|
||
#include <set> | ||
#include <string> | ||
|
||
namespace faker::string { | ||
|
||
static const std::string upperCharacters{"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}; | ||
static const std::string lowerCharacters{"abcdefghijklmnopqrstuvwxyz"}; | ||
static const std::string numericCharactersWithoutZero{"123456789"}; | ||
static const std::string numericCharacters{"0123456789"}; | ||
static const std::string mixedAlphaCharacters{upperCharacters + lowerCharacters}; | ||
static const std::string lowerAlphanumericCharacters{lowerCharacters + numericCharacters}; | ||
static const std::string upperAlphanumericCharacters{upperCharacters + numericCharacters}; | ||
static const std::string mixedAlphanumericCharacters{upperCharacters + lowerCharacters + numericCharacters}; | ||
static const std::string hexUpperCharacters{"0123456789ABCDEF"}; | ||
static const std::string hexLowerCharacters{"0123456789abcdef"}; | ||
static const std::string symbolCharacters{"~`!@#$%^&*()_-+={[}]|:;\"'<,>.?/"}; | ||
|
||
static const std::set<char> lowerCharSet{ | ||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', | ||
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', | ||
}; | ||
|
||
static const std::set<char> upperCharSet{ | ||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', | ||
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', | ||
}; | ||
|
||
static const std::set<char> mixedAlphaCharSet{ | ||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', | ||
's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', | ||
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', | ||
}; | ||
|
||
static const std::set<char> hexUpperCharSet{ | ||
'A', 'B', 'C', 'D', 'E', 'F', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' | ||
}; | ||
|
||
static const std::set<char> hexLowerCharSet{ | ||
'a', 'b', 'c', 'd', 'e', 'f', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' | ||
}; | ||
|
||
static const std::set<char> digitSet{ | ||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9' | ||
}; | ||
|
||
static const std::set<char> utf16CharSet{ | ||
'!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', | ||
'4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', | ||
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', | ||
'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', | ||
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.