mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Start cleanup into ripple_data, split out some hash_value() instances Tidy up CBigNum into ripple_data, moving definitions to .cpp Split and clean up base58 stuff Remove unused files from VS2012 project Clean up some bignum stuff and remove unused files Partial cleanup of RFC1751 Enormous cleanup with RippleAddress and related, into ripple_data Remove unused VS project files Move ECIES stuff into CKey
23 lines
685 B
C++
23 lines
685 B
C++
#ifndef RIPPLE_RFC1751_H
|
|
#define RIPPLE_RFC1751_H
|
|
|
|
class RFC1751
|
|
{
|
|
public:
|
|
static int getKeyFromEnglish (std::string& strKey, const std::string& strHuman);
|
|
|
|
static void getEnglishFromKey (std::string& strHuman, const std::string& strKey);
|
|
|
|
private:
|
|
static unsigned long extract (char *s, int start, int length);
|
|
static void btoe (std::string& strHuman, const std::string& strData);
|
|
static void insert (char *s, int x, int start, int length);
|
|
static void standard (std::string& strWord);
|
|
static int wsrch (const std::string& strWord, int iMin, int iMax);
|
|
static int etob (std::string& strData, std::vector<std::string> vsHuman);
|
|
|
|
static char const* s_dictionary [];
|
|
};
|
|
|
|
#endif
|