Helper function to ensure a string has a single '0x' prefix
| 14 | |
| 15 | // Helper function to ensure a string has a single '0x' prefix |
| 16 | static std::string ensure0x(const std::string &hex) { |
| 17 | if (hex.rfind("0x", 0) == 0) |
| 18 | return hex; |
| 19 | return "0x" + hex; |
| 20 | } |
| 21 | |
| 22 | class QuipFactory::Impl { |
| 23 | public: |