From c1e75443370f9f35c9d751c9fa6aecb9284f4733 Mon Sep 17 00:00:00 2001 From: Junhao Li Date: Wed, 21 Feb 2018 09:11:44 -0500 Subject: [PATCH] update readme for char array (#28) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 5860268..4d3d83b 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,15 @@ void parse_from_string(T& t, const std::string& str); // Parse from an STL string and return the data. T parse_from_string(const std::string& str); ``` +```c++ +// Parse from a char array and save to the data t passed in. +// Recommended for repeated use inside a loop. +void parse_from_char_array(T& t, const char* arr); +``` +```c++ +// Parse from a char array and return the data. +T parse_from_char_array(const char* arr); +``` HPS supports the following types and any combinations of them out of the box: