{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Arch (perldoc)\n\n## NAME\n\nDpkg::Arch - handle architectures\n\n## DESCRIPTION\n\nThe Dpkg::Arch module provides functions to handle Debian architectures, wildcards, and mapping\nfrom and to GNU triplets.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **FUNCTIONS**\n- **CHANGES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Arch",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Arch - handle architectures",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "dpkg-architecture",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-architecture/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 55,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Arch - handle architectures\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Dpkg::Arch module provides functions to handle Debian architectures, wildcards, and mapping\nfrom and to GNU triplets.\n\nNo symbols are exported by default. The :all tag can be used to import all symbols. The\n:getters, :parsers, :mappers and :operators tags can be used to import specific symbol subsets.\n",
                "subsections": []
            },
            "FUNCTIONS": {
                "content": "$arch = getrawbuildarch()\nGet the raw build Debian architecture, without taking into account variables from the\nenvironment.\n\n$arch = getbuildarch()\nGet the build Debian architecture, using DEBBUILDARCH from the environment if available.\n\n$arch = getrawhostarch()\nGet the raw host Debian architecture, without taking into account variables from the\nenvironment.\n\n$arch = gethostarch()\nGet the host Debian architecture, using DEBHOSTARCH from the environment if available.\n\n@archlist = getvalidarches()\nGet an array with all currently known Debian architectures.\n\n$multiarch = gnutriplettomultiarch($gnutriplet)\nMap a GNU triplet into a Debian multiarch triplet.\n\n$multiarch = debarchtomultiarch($arch)\nMap a Debian architecture into a Debian multiarch triplet.\n\n$gnutriplet = debarchtognutriplet($arch)\nMap a Debian architecture into a GNU triplet.\n\n$arch = gnutriplettodebarch($gnutriplet)\nMap a GNU triplet into a Debian architecture.\n\n$bool = debarcheq($archa, $archb)\nEvaluate the equality of a Debian architecture, by comparing with another Debian\narchitecture. No wildcard matching is performed.\n\n$bool = debarchis($arch, $archwildcard)\nEvaluate the identity of a Debian architecture, by matching with an architecture wildcard.\n\n$bool = debarchiswildcard($arch)\nEvaluate whether a Debian architecture is an architecture wildcard.\n\n$bool = debarchisillegal($arch, %options)\nValidate an architecture name.\n\nIf the \"positive\" option is set to a true value, only positive architectures will be\naccepted, otherwise negated architectures are allowed.\n\n$bool = debarchisconcerned($arch, @arches)\nEvaluate whether a Debian architecture applies to the list of architecture restrictions, as\nusually found in dependencies inside square brackets.\n\n@array = debarchlistparse($archlist, %options)\nParse an architecture list.\n\nIf the \"positive\" option is set to a true value, only positive architectures will be\naccepted, otherwise negated architectures are allowed.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 1.03 (dpkg 1.19.1)\nNew argument: Accept a \"positive\" option in debarchisillegal() and debarchlistparse().\n\nVersion 1.02 (dpkg 1.18.19)\nNew import tags: \":all\", \":getters\", \":parsers\", \":mappers\", \":operators\".\n\nVersion 1.01 (dpkg 1.18.5)\nNew functions: debarchisillegal(), debarchlistparse().\n\nVersion 1.00 (dpkg 1.18.2)\nMark the module as public.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "dpkg-architecture(1).\n",
                "subsections": []
            }
        }
    }
}