CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 15 Aug 2025 20:25:40 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20250426160728
location: https://web.archive.org/web/20250426160728/https://github.com/git/git/tree/master/ctype.c
server-timing: captures_list;dur=0.751428, exclusion.robots;dur=0.027418, exclusion.robots.policy;dur=0.011407, esindex;dur=0.014674, cdx.remote;dur=46.689658, LoadShardBlock;dur=145.550354, PetaboxLoader3.datanode;dur=50.794372, PetaboxLoader3.resolve;dur=81.143357
x-app-server: wwwb-app204
x-ts: 302
x-tr: 220
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Fri, 15 Aug 2025 20:25:41 GMT
content-type: text/html; charset=utf-8
content-length: 0
x-archive-orig-date: Sat, 26 Apr 2025 16:07:29 GMT
x-archive-orig-content-length: 0
x-archive-orig-vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame,Accept-Encoding, Accept, X-Requested-With
location: https://web.archive.org/web/20250426160728/https://github.com/git/git/blob/master/ctype.c
x-archive-orig-cache-control: no-cache
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 0
x-archive-orig-referrer-policy: no-referrer-when-downgrade
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
x-archive-orig-server: github.com
x-archive-orig-set-cookie: _gh_sess=iHh6wwr7wbbQhtA2meuATwatiFlpBq1kf3QrKfPq3HoQ9g2T58qN86ve0SUX1Cf55O5c4IldreblkK4scDOGp7bUb05qCF4ZYBaKA5PV%2FMI6BhI1Z8HkiYxZ%2F5h2c%2FKBNK%2FwE26LB3aW6z2yq03hwZ%2FGcD4pZtK7GN4H0XtDPuYv0wrcG94QQ0WOI40cqEYpJUiU38JdGkJqRgfP%2BzfxXk17V0QTw4M6947E6e65UYSv0P%2FnqClEFAJv0QdeJlZqQfGELzYJ%2BIlksPVvYNzfHQ%3D%3D--kWUxNg96nxdXQ5JQ--2pEWo0mt2bC%2B8GLJDn%2BO%2BA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
x-archive-orig-set-cookie: _octo=GH1.1.2100080491.1745683649; Path=/; Domain=github.com; Expires=Sun, 26 Apr 2026 16:07:29 GMT; Secure; SameSite=Lax
x-archive-orig-set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Apr 2026 16:07:29 GMT; HttpOnly; Secure; SameSite=Lax
x-archive-orig-x-github-request-id: A6B4:1221:44A805E:47B3E6D:680D04C0
x-archive-orig-connection: close
cache-control: max-age=1800
memento-datetime: Sat, 26 Apr 2025 16:07:28 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 26 Apr 2025 16:07:28 GMT", ; rel="memento"; datetime="Sat, 26 Apr 2025 16:07:28 GMT", ; rel="last memento"; datetime="Sat, 26 Apr 2025 16:07:28 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: SPNOUTLINKS-20250426160417-crawl919/SPNOUTLINKS-20250426160621-00057.warc.gz
server-timing: captures_list;dur=0.504461, exclusion.robots;dur=0.019571, exclusion.robots.policy;dur=0.008917, esindex;dur=0.011438, cdx.remote;dur=53.333874, LoadShardBlock;dur=133.738552, PetaboxLoader3.datanode;dur=129.218479, PetaboxLoader3.resolve;dur=173.466627, load_resource;dur=209.854184
x-app-server: wwwb-app204
x-ts: 301
x-tr: 430
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Fri, 15 Aug 2025 20:25:41 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20250226164742
location: https://web.archive.org/web/20250226164742/https://github.com/git/git/blob/master/ctype.c
server-timing: captures_list;dur=0.491189, exclusion.robots;dur=0.019353, exclusion.robots.policy;dur=0.007965, esindex;dur=0.010692, cdx.remote;dur=17.409495, LoadShardBlock;dur=487.769837, PetaboxLoader3.datanode;dur=139.868857, PetaboxLoader3.resolve;dur=143.985146
x-app-server: wwwb-app204
x-ts: 302
x-tr: 531
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 15 Aug 2025 20:25:42 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Wed, 26 Feb 2025 16:47:42 GMT
x-archive-orig-vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
x-archive-orig-etag: W/"f922736a324c1b5dcc17aa0f77745163"
x-archive-orig-cache-control: max-age=0, private, must-revalidate
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 0
x-archive-orig-referrer-policy: no-referrer-when-downgrade
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ github.com/webpack/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ github.com/webpack/ github.com/assets/ gist.github.com/assets-cdn/worker/
x-archive-orig-accept-ranges: bytes
x-archive-orig-set-cookie: _gh_sess=Y7CnzxdNDb20cQrUzFjwqh7vWRo51o4XrDaUj6ipwRLQGqE4MW3HguEL8NOihj%2FZB8yJwhULf%2BTi1V8gMhMlRSdXUC4fk8zj26iRp%2B5Z2O1cGVOzIzMZRp5qB12125BPOt9APi4%2BpZCOzRQzLJD26PA9IK%2FNlq3E%2FacBYLkMyAp2As5b1fnLT%2FY5e4ETWRBqeK%2BNg9S6mimChB9rkY0wN7BBGYzl7nUPri3c2%2FdtHXlK2TJOrRyeSHk8BKAUtM2RUFN0o4WSGvVOAfmUJqTnaw%3D%3D--SmDVSNzH8tsChcuY--bWBPlwVvXj2A92L1iujOGg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
x-archive-orig-set-cookie: _octo=GH1.1.2126937225.1740588462; Path=/; Domain=github.com; Expires=Thu, 26 Feb 2026 16:47:42 GMT; Secure; SameSite=Lax
x-archive-orig-set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 26 Feb 2026 16:47:42 GMT; HttpOnly; Secure; SameSite=Lax
x-archive-orig-x-github-request-id: C032:30C7E7:482653:4AA05A:67BF45AE
x-archive-orig-connection: close
x-archive-orig-transfer-encoding: chunked
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
x-archive-orig-content-encoding: gzip
memento-datetime: Wed, 26 Feb 2025 16:47:42 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 25 Jul 2017 18:49:42 GMT", ; rel="prev memento"; datetime="Mon, 10 Apr 2023 12:41:01 GMT", ; rel="memento"; datetime="Wed, 26 Feb 2025 16:47:42 GMT", ; rel="next memento"; datetime="Sat, 19 Jul 2025 16:03:34 GMT", ; rel="last memento"; datetime="Sat, 19 Jul 2025 16:04:29 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: FC-20250226164318-crawl924/FC-20250226164705-00075.warc.gz
server-timing: captures_list;dur=0.460668, exclusion.robots;dur=0.014340, exclusion.robots.policy;dur=0.006863, esindex;dur=0.011123, cdx.remote;dur=10.432234, LoadShardBlock;dur=198.966268, PetaboxLoader3.datanode;dur=94.860516, PetaboxLoader3.resolve;dur=146.638433, load_resource;dur=92.321791
x-app-server: wwwb-app204
x-ts: 200
x-tr: 428
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
git/ctype.c at master · git/git · GitHub
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
/
Copy pathctype.c
30 lines (28 loc) · 1016 Bytes
/
ctype.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Sane locale-independent, ASCII ctype.
*
* No surprises, and works with signed and unsigned chars.
*/
#include "git-compat-util.h"
enum {
S = GIT_SPACE,
A = GIT_ALPHA,
D = GIT_DIGIT,
G = GIT_GLOB_SPECIAL, /* *, ?, [, \\ */
R = GIT_REGEX_SPECIAL, /* $, (, ), +, ., ^, {, | */
P = GIT_PATHSPEC_MAGIC, /* other non-alnum, except for ] and } */
X = GIT_CNTRL,
U = GIT_PUNCT,
Z = GIT_CNTRL | GIT_SPACE
};
const unsigned char sane_ctype[256] = {
X, X, X, X, X, X, X, X, X, Z, Z, X, X, Z, X, X, /* 0.. 15 */
X, X, X, X, X, X, X, X, X, X, X, X, X, X, X, X, /* 16.. 31 */
S, P, P, P, R, P, P, P, R, R, G, R, P, P, R, P, /* 32.. 47 */
D, D, D, D, D, D, D, D, D, D, P, P, P, P, P, G, /* 48.. 63 */
P, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, /* 64.. 79 */
A, A, A, A, A, A, A, A, A, A, A, G, G, U, R, P, /* 80.. 95 */
P, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, /* 96..111 */
A, A, A, A, A, A, A, A, A, A, A, R, R, U, P, X, /* 112..127 */
/* Nothing in the 128.. range */
};
You can’t perform that action at this time.