Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New
Address.AreaCircle(lat,lon,rad)
to generate random latitude/l…
…ongitude GPS points within a specified radius. * New `Address.Geohash()` generates a random Geohash. * New `Address.Depth()` generates a random depth (down to Mariana Trench). * New `Address.Altitude()` generate a random height (up to Mount Everest). * New `Internet.Color()` format options: CSS `rgb(...)` and delimited RGB. * New `System.AndroidId()` to generate GCM registration ID. * New `System.ApplePushToken()` to generate a random Apple Push Token. * New `System.BlackBerryPin()` to generate a random Black Berry PIN. * New `Randomizer.Hash()` to generate random hashes of specified length. * New `Randomizer.String2()` to generate random strings with specified character sets.
- Loading branch information
Showing
14 changed files
with
371 additions
and
8 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
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,29 @@ | ||
namespace Bogus | ||
{ | ||
/// <summary> | ||
/// Static class for holding character string constants. | ||
/// </summary> | ||
public static class Chars | ||
{ | ||
/// <summary> | ||
/// Lower case, a-z. | ||
/// </summary> | ||
public const string LowerCase = "abcdefghijklmnopqrstuvwxyz"; | ||
/// <summary> | ||
/// Upper case, A-Z. | ||
/// </summary> | ||
public const string UpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | ||
/// <summary> | ||
/// Numbers, 0-9. | ||
/// </summary> | ||
public const string Numbers = "0123456789"; | ||
/// <summary> | ||
/// Hexadecimal, 0-9 and a-z. | ||
/// </summary> | ||
public const string HexLowerCase = Numbers + "abcdef"; | ||
/// <summary> | ||
/// Hexadecimal, 0-9 and A-Z. | ||
/// </summary> | ||
public const string HexUpperCase = Numbers + "ABCDEF"; | ||
} | ||
} |
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,21 @@ | ||
namespace Bogus.DataSets | ||
{ | ||
/// <summary> | ||
/// Type of color format | ||
/// </summary> | ||
public enum ColorFormat | ||
{ | ||
/// <summary> | ||
/// Hexadecimal format: #4d0e68 | ||
/// </summary> | ||
Hex = 0x1, | ||
/// <summary> | ||
/// CSS format: rgb(77,14,104) | ||
/// </summary> | ||
Rgb, | ||
/// <summary> | ||
/// Delimited RGB: 77,14,104 | ||
/// </summary> | ||
Delimited | ||
} | ||
} |
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.