Lines Matching +full:out +full:- +full:of +full:- +full:reset

7  *	 * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
10 * notice, this list of conditions and the following disclaimer in the
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 std::string *out = reinterpret_cast<std::string *>(ud); in append_char() local
59 out->append (nchars, (char)c); in append_char()
66 std::string *out = reinterpret_cast<std::string *>(ud); in append_len() local
68 out->append ((const char *)str, len); in append_len()
75 std::string *out = reinterpret_cast<std::string *>(ud); in append_int() local
78 out->append (nstr); in append_int()
85 std::string *out = reinterpret_cast<std::string *>(ud); in append_double() local
88 out->append (nstr); in append_double()
114 vars->emplace (data, data + len); in ucl_variable_getter()
130 if (!replacer->is_variable (var_name)) { in ucl_variable_replacer()
134 std::string var_value = replacer->replace (var_name); in ucl_variable_replacer()
198 cur.reset (new Ucl(ucl_object_iterate_safe (it.get(), true))); in const_iterator()
199 if (!cur->obj) { in const_iterator()
200 it.reset (); in const_iterator()
201 cur.reset (); in const_iterator()
216 return cur->obj.get() == other.cur->obj.get();
230 cur.reset (new Ucl(ucl_object_iterate_safe (it.get(), true)));
233 if (cur && !cur->obj) {
234 it.reset ();
235 cur.reset ();
245 const Ucl* operator->() const
262 // We grab ownership if get non-const ucl_object_t
264 obj.reset (other); in Ucl()
269 obj.reset (ucl_object_ref (other)); in Ucl()
273 obj.reset (ucl_object_ref (other.obj.get())); in Ucl()
281 obj.reset (ucl_object_typed_new (UCL_NULL)); in Ucl()
284 obj.reset (ucl_object_typed_new (UCL_NULL)); in Ucl()
287 obj.reset (ucl_object_typed_new (UCL_FLOAT)); in Ucl()
288 obj->value.dv = value; in Ucl()
291 obj.reset (ucl_object_typed_new (UCL_INT)); in Ucl()
292 obj->value.iv = value; in Ucl()
295 obj.reset (ucl_object_typed_new (UCL_BOOLEAN)); in Ucl()
296 obj->value.iv = static_cast<int64_t>(value); in Ucl()
299 obj.reset (ucl_object_fromstring_common (value.data (), value.size (), in Ucl()
303 obj.reset (ucl_object_fromstring_common (value, 0, UCL_STRING_RAW)); in Ucl()
310 // Implicit constructor: map-like objects (std::map, std::unordered_map, etc)
316 obj.reset (ucl_object_typed_new (UCL_OBJECT)); in Ucl()
325 // Implicit constructor: vector-like objects (std::list, std::vector, std::set, etc)
330 obj.reset (ucl_object_typed_new (UCL_ARRAY)); in Ucl()
348 if (obj->key) { in key()
349 res.assign (obj->key, obj->keylen); in key()
437 void dump (std::string &out, ucl_emitter_t type = UCL_EMIT_JSON) const
442 cbdata.ud = reinterpret_cast<void *>(&out);
449 std::string out; variable
451 dump (out, type);
453 return out;
505 auto parse_func = [&in, &duplicate_strategy] (struct ucl_parser *parser) -> bool {
551 auto parse_func = [&in, &duplicate_strategy] (struct ucl_parser *parser) -> bool {