From nobody Mon Aug 4 19:46:39 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bwnB854vpz63QlC; Mon, 04 Aug 2025 19:46:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bwnB73Rw4z4KRY; Mon, 04 Aug 2025 19:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754336799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=By0EsWXq8wfX4Zm9KoCY6JVDtX901VFdpy0oAXsUXD8=; b=tfCV2zLOjlF+jAN+skqcFA5pIO5LLOm4JQvYL1Qip/7Q8oDWEcWiIngfhSWLdsFl4o/9Tc t8gnwHEuo7RXeDnbQ2ljEZDcPBNPeed5aon3hR2x1nmQnQeeaBaQ9rA1iXL4L+Y/wVLDoK qjxAWl5v/uMQpJli9AHSu2BeoebtOf87pD0GRy7yHQXlHGh2aWjWHYsjR80pN7DNvz4zed 8CW87Uerg0mpSL1cJV4ekbYbelzX5lWsOJoyad7T2zGolP9ChTaSui50SfY7g9m0MRy7Qw 3wy9fGGPFI2fzPpusk4DTTN8w+Pzrr1W0dM5iaiwB1CnSBvMZlq1taW5/c+C3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754336799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=By0EsWXq8wfX4Zm9KoCY6JVDtX901VFdpy0oAXsUXD8=; b=gEKTGn6WMYfPq372jyuPUK/IYbu0sNrz+dA1hWFYKEzrQOx/UsexGylK5nio9PMh5FdtGV l3B+gw+C9Pceg/edNFWsGD0EM8KnIO5tIAX3eGc/Kig1KHPayLlB9Pvd+3wlXJdncVZ/5l 6Sv4RNj3SOhsrlYP028mVhq7tFxHbshT2wSvRo4RTgWi07KUMZvelG1SfQaIVM9d7ZaMxt g6CMKgT3mzFJVgkYZv2L1DFC6NYcP0s0gICpFX+ShrwTLklzl6a3Y6dEqDlXnDW9fseA0+ z675jUcPlUaQE8SOhlSD8T06nwNO/WoAm+zllK3v0Wdf8n2iHvdtzWRQVh+bYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754336799; a=rsa-sha256; cv=none; b=qdIOzr2rufJBIuqyM7ttLKt+h2d5wNyGjJ7I3Ix1+N3iDTzMOMw4X3rdpSEaYHpLKCPr9E 4z+n4Cu3NAkmSa1X7b8D3IkPBXjfbJ0krNMXoO2p0NRXAuzJMO83SRu2t6oFX+rFLz+lLd zWN68hPpcUh1i8S/aG5ITzgzn5ZrWjXjxjPYysG9kx23uYclxfjLr0busRB8xclNGP9uMs K29aAePqtv8h+ESxilH8YaOWZ27JOhrtM1lmy6Xvquw40QiQpt0x1j9rVLRcmGeE4a1wkT c27POXZMxyxc9Yp9PY52PZ4ucHho2FovM2EITpSpS3GTxOCVB4xDcjTbQoUTbg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bwnB72fPjz13B7; Mon, 04 Aug 2025 19:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 574JkdFc098786; Mon, 4 Aug 2025 19:46:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 574JkdH8098783; Mon, 4 Aug 2025 19:46:39 GMT (envelope-from git) Date: Mon, 4 Aug 2025 19:46:39 GMT Message-Id: <202508041946.574JkdH8098783@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 47586ffc8bde - main - libucl: Add a ucl::Ucl::forced_string_value method List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 47586ffc8bde236bab65da05ad3c0a660709ba96 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=47586ffc8bde236bab65da05ad3c0a660709ba96 commit 47586ffc8bde236bab65da05ad3c0a660709ba96 Author: John Baldwin AuthorDate: 2025-08-04 19:38:06 +0000 Commit: John Baldwin CommitDate: 2025-08-04 19:38:06 +0000 libucl: Add a ucl::Ucl::forced_string_value method This is a wrapper around ucl_object_tostring_forced. Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794 --- contrib/libucl/include/ucl++.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/libucl/include/ucl++.h b/contrib/libucl/include/ucl++.h index fb63430d400d..1cd17eac0c75 100644 --- a/contrib/libucl/include/ucl++.h +++ b/contrib/libucl/include/ucl++.h @@ -396,6 +396,11 @@ public: return default_val; } + std::string forced_string_value () const + { + return ucl_object_tostring_forced(obj.get()); + } + size_t size () const { if (type () == UCL_ARRAY) {