Skip to content

[libc][docs] generate docs for ctype.h #87833 #87946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions libc/docs/ctype.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
ctype.h Functions
=================

.. list-table::
:widths: auto
:align: center
:header-rows: 1

* - Function
- Implemented
- Standard
* - isalnum
- |check|
- 7.4.1.1
* - isalpha
- |check|
- 7.4.1.2
* - isblank
- |check|
- 7.4.1.3
* - iscntrl
- |check|
- 7.4.1.4
* - isdigit
- |check|
- 7.4.1.5
* - isgraph
- |check|
- 7.4.1.6
* - islower
- |check|
- 7.4.1.7
* - isprint
- |check|
- 7.4.1.8
* - ispunct
- |check|
- 7.4.1.9
* - isspace
- |check|
- 7.4.1.10
* - isupper
- |check|
- 7.4.1.11
* - isxdigit
- |check|
- 7.4.1.12
* - tolower
- |check|
- 7.4.2.1
* - toupper
- |check|
- 7.4.2.2
1 change: 1 addition & 0 deletions libc/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ stages there is no ABI stability in any form.
fenv
libc_search
c23
ctype

.. toctree::
:hidden:
Expand Down
46 changes: 43 additions & 3 deletions libc/utils/docgen/ctype.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,47 @@
{
"functions": {
"isalnum": null,
"isalpha": null,
"isblank": null
"isalnum": {
"defined": "7.4.1.1"
},
"isalpha": {
"defined": "7.4.1.2"
},
"isblank": {
"defined": "7.4.1.3"
},
"iscntrl": {
"defined": "7.4.1.4"
},
"isdigit": {
"defined": "7.4.1.5"
},
"isgraph": {
"defined": "7.4.1.6"
},
"islower": {
"defined": "7.4.1.7"
},
"isprint": {
"defined": "7.4.1.8"
},
"ispunct": {
"defined": "7.4.1.9"
},
"isspace": {
"defined": "7.4.1.10"
},
"isupper": {
"defined": "7.4.1.11"
},
"isxdigit": {
"defined": "7.4.1.12"
},
"tolower" : {
"defined": "7.4.2.1"
},
"toupper": {
"defined": "7.4.2.2"
}
}
}