Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +31 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/bottom-view-selector.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/collect_thread_activity.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-python-backtrace.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-trace-x86.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-trace.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-opengl-functions.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-opengl-trace.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-os-runtime-trace.png +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140_2.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/ucrtbase.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/vccorlib140.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/concrt140.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140_2.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/ucrtbase.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/vccorlib140.dll +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/CudaGpuInfoDumper +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libLinuxKeyboardInterceptorProxy.so +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libToolsInjection64.so +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.0 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.1 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.2 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.0 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.1 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.2 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.3 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.4 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.5 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.6 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.7 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.8 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.12.4 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.0.187 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.1 +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvlog.so +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvperf_grfx_host.so +3 -0
- cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libsqlite3.so.0 +3 -0
- git/usr/share/perl5/core_perl/Tie/Memoize.pm +128 -0
- git/usr/share/perl5/core_perl/Tie/RefHash.pm +367 -0
- git/usr/share/perl5/core_perl/Tie/Scalar.pm +164 -0
- git/usr/share/perl5/core_perl/Tie/StdHandle.pm +71 -0
- git/usr/share/perl5/core_perl/Tie/SubstrHash.pm +211 -0
- git/usr/share/perl5/core_perl/Time/Local.pm +547 -0
- git/usr/share/perl5/core_perl/Time/gmtime.pm +88 -0
- git/usr/share/perl5/core_perl/Time/localtime.pm +83 -0
- git/usr/share/perl5/core_perl/Time/tm.pm +30 -0
- git/usr/share/perl5/core_perl/unicore/Blocks.txt +375 -0
.gitattributes
CHANGED
|
@@ -5356,3 +5356,34 @@ cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/host-windows-x64/TimelineUIU
|
|
| 5356 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/host-windows-x64/TimelineWidget.dll filter=lfs diff=lfs merge=lfs -text
|
| 5357 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/host-windows-x64/ucrtbase.dll filter=lfs diff=lfs merge=lfs -text
|
| 5358 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/concrt140.dll filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5356 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/host-windows-x64/TimelineWidget.dll filter=lfs diff=lfs merge=lfs -text
|
| 5357 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/host-windows-x64/ucrtbase.dll filter=lfs diff=lfs merge=lfs -text
|
| 5358 |
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/concrt140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5359 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5360 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140_2.dll filter=lfs diff=lfs merge=lfs -text
|
| 5361 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/ucrtbase.dll filter=lfs diff=lfs merge=lfs -text
|
| 5362 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/vccorlib140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5363 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/concrt140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5364 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5365 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140_2.dll filter=lfs diff=lfs merge=lfs -text
|
| 5366 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/ucrtbase.dll filter=lfs diff=lfs merge=lfs -text
|
| 5367 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/vccorlib140.dll filter=lfs diff=lfs merge=lfs -text
|
| 5368 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/CudaGpuInfoDumper filter=lfs diff=lfs merge=lfs -text
|
| 5369 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.0 filter=lfs diff=lfs merge=lfs -text
|
| 5370 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.1 filter=lfs diff=lfs merge=lfs -text
|
| 5371 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.2 filter=lfs diff=lfs merge=lfs -text
|
| 5372 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.0 filter=lfs diff=lfs merge=lfs -text
|
| 5373 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.1 filter=lfs diff=lfs merge=lfs -text
|
| 5374 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.2 filter=lfs diff=lfs merge=lfs -text
|
| 5375 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.3 filter=lfs diff=lfs merge=lfs -text
|
| 5376 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.4 filter=lfs diff=lfs merge=lfs -text
|
| 5377 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.5 filter=lfs diff=lfs merge=lfs -text
|
| 5378 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.6 filter=lfs diff=lfs merge=lfs -text
|
| 5379 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.7 filter=lfs diff=lfs merge=lfs -text
|
| 5380 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.8 filter=lfs diff=lfs merge=lfs -text
|
| 5381 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.12.4 filter=lfs diff=lfs merge=lfs -text
|
| 5382 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so filter=lfs diff=lfs merge=lfs -text
|
| 5383 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.0.187 filter=lfs diff=lfs merge=lfs -text
|
| 5384 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.1 filter=lfs diff=lfs merge=lfs -text
|
| 5385 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libLinuxKeyboardInterceptorProxy.so filter=lfs diff=lfs merge=lfs -text
|
| 5386 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvlog.so filter=lfs diff=lfs merge=lfs -text
|
| 5387 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvperf_grfx_host.so filter=lfs diff=lfs merge=lfs -text
|
| 5388 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libsqlite3.so.0 filter=lfs diff=lfs merge=lfs -text
|
| 5389 |
+
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libToolsInjection64.so filter=lfs diff=lfs merge=lfs -text
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/bottom-view-selector.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/collect_thread_activity.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-python-backtrace.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-trace-x86.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-cuda-trace.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-opengl-functions.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-opengl-trace.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/documentation/_images/configure-os-runtime-trace.png
ADDED
|
Git LFS Details
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02c7259456eac8cbadfb460377ba68e98282400c7a4a9d0bf49b3313ef6d554d
|
| 3 |
+
size 450320
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/msvcp140_2.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:459cb496aebf1bfc40405e8eb98f43cc360b9ba7b0fc0d71851a0bdf6487132d
|
| 3 |
+
size 173336
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/ucrtbase.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7651d3749a2c2b2231117c958919db8fd018dfebe5909b58d8b176d70103aff1
|
| 3 |
+
size 922392
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib32/vccorlib140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f7e17bc746abf55122ee1d2608db7240de4b4428be13dfee8c3e03db6f9b360
|
| 3 |
+
size 269080
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/concrt140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dabdb0732b2fc14040cedbbfd369d9eb3c7a2e66b38a79892e1c05e6d6a8526d
|
| 3 |
+
size 333592
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f87819ae8c6f7c90d3237a1abb9809e8cba9dcd0c80ac3f0969a5e68ef652ca4
|
| 3 |
+
size 618264
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/msvcp140_2.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d5d180c8e41b1964835b2550191e2d9054d8f4beff898ade67b3d5dd25b5101
|
| 3 |
+
size 203544
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/ucrtbase.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a80137b08dad99c22af911b84a20639b74009462a99cc35af911cc6749218be
|
| 3 |
+
size 994072
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/lib64/vccorlib140.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41b6af9484c860804c69e00c9d7fee22efe5f769c51355936fc9de248221de94
|
| 3 |
+
size 366360
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/CudaGpuInfoDumper
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4badf962ea422e15939f6a8ae41894072081a1b30b48672f9af9065869e6377
|
| 3 |
+
size 2142688
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libLinuxKeyboardInterceptorProxy.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac380f9af9921379ba436e78660e511e71d5c95bc746ffeeff868ed1a3712db6
|
| 3 |
+
size 142288
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libToolsInjection64.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bc0293da97d1a1a2489757884eca82993016d9e90b39fe2376a4196b1837aba
|
| 3 |
+
size 14918384
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:620e3d3cf47ec6007c58781586eb23dd81e9083f1a54f26cabc1ca44679dc116
|
| 3 |
+
size 6210840
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cb672b29ce621251186e63b492f0732f1f105c9933af450115c5c07b1539bca
|
| 3 |
+
size 6225144
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.10.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d01298144b9e8c8f0b89a8dc06c81fa8179a043292c293c8e5b00db2bffccde5
|
| 3 |
+
size 5984336
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acfd1a0ab0e1c7c1abfa85e6b98a923e2ce88757e9a83086874f0444c04ddf3d
|
| 3 |
+
size 6539088
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed3e6588a0df9adb0158f13039ebfb0ce60f84924e23de80991d7dcb829f8fe0
|
| 3 |
+
size 6572976
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e961d8214b9de1cd0db8e9235ac319188dadfe9cc1e4ea12b8a3f463b8973e88
|
| 3 |
+
size 6664624
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8bd623f3a1da4c37491019cbef5fb7e852dae66ba5db97b1bdfffb0f70611f1
|
| 3 |
+
size 6748816
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0b9ce7c149aa4e933a047d0ccec542ac1ee20261208add88cb1e0a8dfc83654
|
| 3 |
+
size 6755312
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1ae9cbccac742548e2cdffb364b31618733dd117ac38b5a17b590cbf146ccca
|
| 3 |
+
size 6759504
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.6
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1ae9cbccac742548e2cdffb364b31618733dd117ac38b5a17b590cbf146ccca
|
| 3 |
+
size 6759504
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.7
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e2fc5d89063863adbf1a6081fbe95b15d235aa8f520170f5eac320e27544e1d
|
| 3 |
+
size 7099760
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.11.8
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f084994fbae5004fa43fe7eae3fa1861960ded46c7b38a3152df41d9a312e9fc
|
| 3 |
+
size 7199856
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libcupti.so.12.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5086e51ba2422dccda90a764cf400b11f29d5e68418512ceb51fe9dc9c22f9dd
|
| 3 |
+
size 6614096
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e892281fa9e30e5210ea7750630283be6231840c1147dc687ef96c06d692f92b
|
| 3 |
+
size 100848
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.0.187
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e892281fa9e30e5210ea7750630283be6231840c1147dc687ef96c06d692f92b
|
| 3 |
+
size 100848
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libelf.so.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e892281fa9e30e5210ea7750630283be6231840c1147dc687ef96c06d692f92b
|
| 3 |
+
size 100848
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvlog.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7659ce40aeef63f2abef999851f55b2d5aed0e3a6cd7975f21ffb8f3d9c22ad
|
| 3 |
+
size 170752
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libnvperf_grfx_host.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddbb3414090b5fa30a759e4408b56f9af7d013e56d8680c5c6027a97bad8b44c
|
| 3 |
+
size 28084320
|
cuda_toolkit/nsight-systems/nsight-systems/2023.4.4/target-linux-x64/libsqlite3.so.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b193efedaf858b437c056898807570837e873c03c4ba4d6bf44f5ca53a99b802
|
| 3 |
+
size 1002584
|
git/usr/share/perl5/core_perl/Tie/Memoize.pm
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
use strict;
|
| 2 |
+
package Tie::Memoize;
|
| 3 |
+
use Tie::Hash;
|
| 4 |
+
our @ISA = 'Tie::ExtraHash';
|
| 5 |
+
our $VERSION = '1.1';
|
| 6 |
+
|
| 7 |
+
our $exists_token = \undef;
|
| 8 |
+
|
| 9 |
+
sub croak {require Carp; goto &Carp::croak}
|
| 10 |
+
|
| 11 |
+
# Format: [0: STORAGE, 1: EXISTS-CACHE, 2: FETCH_function;
|
| 12 |
+
# 3: EXISTS_function, 4: DATA, 5: EXISTS_different ]
|
| 13 |
+
|
| 14 |
+
sub FETCH {
|
| 15 |
+
my ($h,$key) = ($_[0][0], $_[1]);
|
| 16 |
+
my $res = $h->{$key};
|
| 17 |
+
return $res if defined $res; # Shortcut if accessible
|
| 18 |
+
return $res if exists $h->{$key}; # Accessible, but undef
|
| 19 |
+
my $cache = $_[0][1]{$key};
|
| 20 |
+
return if defined $cache and not $cache; # Known to not exist
|
| 21 |
+
my @res = $_[0][2]->($key, $_[0][4]); # Autoload
|
| 22 |
+
$_[0][1]{$key} = 0, return unless @res; # Cache non-existence
|
| 23 |
+
delete $_[0][1]{$key}; # Clear existence cache, not needed any more
|
| 24 |
+
$_[0][0]{$key} = $res[0]; # Store data and return
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
sub EXISTS {
|
| 28 |
+
my ($a,$key) = (shift, shift);
|
| 29 |
+
return 1 if exists $a->[0]{$key}; # Have data
|
| 30 |
+
my $cache = $a->[1]{$key};
|
| 31 |
+
return $cache if defined $cache; # Existence cache
|
| 32 |
+
my @res = $a->[3]($key,$a->[4]);
|
| 33 |
+
$a->[1]{$key} = 0, return unless @res; # Cache non-existence
|
| 34 |
+
# Now we know it exists
|
| 35 |
+
return ($a->[1]{$key} = 1) if $a->[5]; # Only existence reported
|
| 36 |
+
# Now know the value
|
| 37 |
+
$a->[0]{$key} = $res[0]; # Store data
|
| 38 |
+
return 1
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
sub TIEHASH {
|
| 42 |
+
croak 'syntax: tie %hash, \'Tie::AutoLoad\', \&fetch_subr' if @_ < 2;
|
| 43 |
+
croak 'syntax: tie %hash, \'Tie::AutoLoad\', \&fetch_subr, $data, \&exists_subr, \%data_cache, \%existence_cache' if @_ > 6;
|
| 44 |
+
push @_, undef if @_ < 3; # Data
|
| 45 |
+
push @_, $_[1] if @_ < 4; # exists
|
| 46 |
+
push @_, {} while @_ < 6; # initial value and caches
|
| 47 |
+
bless [ @_[4,5,1,3,2], $_[1] ne $_[3]], $_[0]
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
1;
|
| 51 |
+
|
| 52 |
+
=head1 NAME
|
| 53 |
+
|
| 54 |
+
Tie::Memoize - add data to hash when needed
|
| 55 |
+
|
| 56 |
+
=head1 SYNOPSIS
|
| 57 |
+
|
| 58 |
+
require Tie::Memoize;
|
| 59 |
+
tie %hash, 'Tie::Memoize',
|
| 60 |
+
\&fetch, # The rest is optional
|
| 61 |
+
$DATA, \&exists,
|
| 62 |
+
{%ini_value}, {%ini_existence};
|
| 63 |
+
|
| 64 |
+
=head1 DESCRIPTION
|
| 65 |
+
|
| 66 |
+
This package allows a tied hash to autoload its values on the first access,
|
| 67 |
+
and to use the cached value on the following accesses.
|
| 68 |
+
|
| 69 |
+
Only read-accesses (via fetching the value or C<exists>) result in calls to
|
| 70 |
+
the functions; the modify-accesses are performed as on a normal hash.
|
| 71 |
+
|
| 72 |
+
The required arguments during C<tie> are the hash, the package, and
|
| 73 |
+
the reference to the C<FETCH>ing function. The optional arguments are
|
| 74 |
+
an arbitrary scalar $data, the reference to the C<EXISTS> function,
|
| 75 |
+
and initial values of the hash and of the existence cache.
|
| 76 |
+
|
| 77 |
+
Both the C<FETCH>ing function and the C<EXISTS> functions have the
|
| 78 |
+
same signature: the arguments are C<$key, $data>; $data is the same
|
| 79 |
+
value as given as argument during tie()ing. Both functions should
|
| 80 |
+
return an empty list if the value does not exist. If C<EXISTS>
|
| 81 |
+
function is different from the C<FETCH>ing function, it should return
|
| 82 |
+
a TRUE value on success. The C<FETCH>ing function should return the
|
| 83 |
+
intended value if the key is valid.
|
| 84 |
+
|
| 85 |
+
=head1 Inheriting from B<Tie::Memoize>
|
| 86 |
+
|
| 87 |
+
The structure of the tied() data is an array reference with elements
|
| 88 |
+
|
| 89 |
+
0: cache of known values
|
| 90 |
+
1: cache of known existence of keys
|
| 91 |
+
2: FETCH function
|
| 92 |
+
3: EXISTS function
|
| 93 |
+
4: $data
|
| 94 |
+
|
| 95 |
+
The rest is for internal usage of this package. In particular, if
|
| 96 |
+
TIEHASH is overwritten, it should call SUPER::TIEHASH.
|
| 97 |
+
|
| 98 |
+
=head1 EXAMPLE
|
| 99 |
+
|
| 100 |
+
sub slurp {
|
| 101 |
+
my ($key, $dir) = shift;
|
| 102 |
+
open my $h, '<', "$dir/$key" or return;
|
| 103 |
+
local $/; <$h> # slurp it all
|
| 104 |
+
}
|
| 105 |
+
sub exists { my ($key, $dir) = shift; return -f "$dir/$key" }
|
| 106 |
+
|
| 107 |
+
tie %hash, 'Tie::Memoize', \&slurp, $directory, \&exists,
|
| 108 |
+
{ fake_file1 => $content1, fake_file2 => $content2 },
|
| 109 |
+
{ pretend_does_not_exists => 0, known_to_exist => 1 };
|
| 110 |
+
|
| 111 |
+
This example treats the slightly modified contents of $directory as a
|
| 112 |
+
hash. The modifications are that the keys F<fake_file1> and
|
| 113 |
+
F<fake_file2> fetch values $content1 and $content2, and
|
| 114 |
+
F<pretend_does_not_exists> will never be accessed. Additionally, the
|
| 115 |
+
existence of F<known_to_exist> is never checked (so if it does not
|
| 116 |
+
exists when its content is needed, the user of %hash may be confused).
|
| 117 |
+
|
| 118 |
+
=head1 BUGS
|
| 119 |
+
|
| 120 |
+
FIRSTKEY and NEXTKEY methods go through the keys which were already read,
|
| 121 |
+
not all the possible keys of the hash.
|
| 122 |
+
|
| 123 |
+
=head1 AUTHOR
|
| 124 |
+
|
| 125 |
+
Ilya Zakharevich L<mailto:perl-module-hash-memoize@ilyaz.org>.
|
| 126 |
+
|
| 127 |
+
=cut
|
| 128 |
+
|
git/usr/share/perl5/core_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Tie::RefHash; # git description: v1.40-9-g23812d9
|
| 2 |
+
# ABSTRACT: Use references as hash keys
|
| 3 |
+
|
| 4 |
+
our $VERSION = '1.41';
|
| 5 |
+
|
| 6 |
+
#pod =head1 SYNOPSIS
|
| 7 |
+
#pod
|
| 8 |
+
#pod require 5.004;
|
| 9 |
+
#pod use Tie::RefHash;
|
| 10 |
+
#pod tie HASHVARIABLE, 'Tie::RefHash', LIST;
|
| 11 |
+
#pod tie HASHVARIABLE, 'Tie::RefHash::Nestable', LIST;
|
| 12 |
+
#pod
|
| 13 |
+
#pod untie HASHVARIABLE;
|
| 14 |
+
#pod
|
| 15 |
+
#pod =head1 DESCRIPTION
|
| 16 |
+
#pod
|
| 17 |
+
#pod This module provides the ability to use references as hash keys if you
|
| 18 |
+
#pod first C<tie> the hash variable to this module. Normally, only the
|
| 19 |
+
#pod keys of the tied hash itself are preserved as references; to use
|
| 20 |
+
#pod references as keys in hashes-of-hashes, use Tie::RefHash::Nestable,
|
| 21 |
+
#pod included as part of Tie::RefHash.
|
| 22 |
+
#pod
|
| 23 |
+
#pod It is implemented using the standard perl TIEHASH interface. Please
|
| 24 |
+
#pod see the C<tie> entry in perlfunc(1) and perltie(1) for more information.
|
| 25 |
+
#pod
|
| 26 |
+
#pod The Nestable version works by looking for hash references being stored
|
| 27 |
+
#pod and converting them to tied hashes so that they too can have
|
| 28 |
+
#pod references as keys. This will happen without warning whenever you
|
| 29 |
+
#pod store a reference to one of your own hashes in the tied hash.
|
| 30 |
+
#pod
|
| 31 |
+
#pod =head1 EXAMPLE
|
| 32 |
+
#pod
|
| 33 |
+
#pod use Tie::RefHash;
|
| 34 |
+
#pod tie %h, 'Tie::RefHash';
|
| 35 |
+
#pod $a = [];
|
| 36 |
+
#pod $b = {};
|
| 37 |
+
#pod $c = \*main;
|
| 38 |
+
#pod $d = \"gunk";
|
| 39 |
+
#pod $e = sub { 'foo' };
|
| 40 |
+
#pod %h = ($a => 1, $b => 2, $c => 3, $d => 4, $e => 5);
|
| 41 |
+
#pod $a->[0] = 'foo';
|
| 42 |
+
#pod $b->{foo} = 'bar';
|
| 43 |
+
#pod for (keys %h) {
|
| 44 |
+
#pod print ref($_), "\n";
|
| 45 |
+
#pod }
|
| 46 |
+
#pod
|
| 47 |
+
#pod tie %h, 'Tie::RefHash::Nestable';
|
| 48 |
+
#pod $h{$a}->{$b} = 1;
|
| 49 |
+
#pod for (keys %h, keys %{$h{$a}}) {
|
| 50 |
+
#pod print ref($_), "\n";
|
| 51 |
+
#pod }
|
| 52 |
+
#pod
|
| 53 |
+
#pod =head1 THREAD SUPPORT
|
| 54 |
+
#pod
|
| 55 |
+
#pod L<Tie::RefHash> fully supports threading using the C<CLONE> method.
|
| 56 |
+
#pod
|
| 57 |
+
#pod =head1 STORABLE SUPPORT
|
| 58 |
+
#pod
|
| 59 |
+
#pod L<Storable> hooks are provided for semantically correct serialization and
|
| 60 |
+
#pod cloning of tied refhashes.
|
| 61 |
+
#pod
|
| 62 |
+
#pod =head1 AUTHORS
|
| 63 |
+
#pod
|
| 64 |
+
#pod Gurusamy Sarathy <gsar@activestate.com>
|
| 65 |
+
#pod
|
| 66 |
+
#pod Tie::RefHash::Nestable by Ed Avis <ed@membled.com>
|
| 67 |
+
#pod
|
| 68 |
+
#pod =head1 SEE ALSO
|
| 69 |
+
#pod
|
| 70 |
+
#pod perl(1), perlfunc(1), perltie(1)
|
| 71 |
+
#pod
|
| 72 |
+
#pod =cut
|
| 73 |
+
|
| 74 |
+
use Tie::Hash;
|
| 75 |
+
our @ISA = qw(Tie::Hash);
|
| 76 |
+
use strict;
|
| 77 |
+
use Carp ();
|
| 78 |
+
|
| 79 |
+
# Tie::RefHash::Weak (until at least 0.09) assumes we define a refaddr()
|
| 80 |
+
# function, so just import the one from Scalar::Util
|
| 81 |
+
use Scalar::Util qw(refaddr);
|
| 82 |
+
|
| 83 |
+
BEGIN {
|
| 84 |
+
# determine whether we need to take care of threads
|
| 85 |
+
use Config ();
|
| 86 |
+
my $usethreads = $Config::Config{usethreads}; # && exists $INC{"threads.pm"}
|
| 87 |
+
*_HAS_THREADS = $usethreads ? sub () { 1 } : sub () { 0 };
|
| 88 |
+
*_HAS_WEAKEN = defined(&Scalar::Util::weaken) ? sub () { 1 } : sub () { 0 };
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
my (@thread_object_registry, $count); # used by the CLONE method to rehash the keys after their refaddr changed
|
| 92 |
+
|
| 93 |
+
sub TIEHASH {
|
| 94 |
+
my $c = shift;
|
| 95 |
+
my $s = [];
|
| 96 |
+
bless $s, $c;
|
| 97 |
+
while (@_) {
|
| 98 |
+
$s->STORE(shift, shift);
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
if (_HAS_THREADS ) {
|
| 102 |
+
|
| 103 |
+
if ( _HAS_WEAKEN ) {
|
| 104 |
+
# remember the object so that we can rekey it on CLONE
|
| 105 |
+
push @thread_object_registry, $s;
|
| 106 |
+
# but make this a weak reference, so that there are no leaks
|
| 107 |
+
Scalar::Util::weaken( $thread_object_registry[-1] );
|
| 108 |
+
|
| 109 |
+
if ( ++$count > 1000 ) {
|
| 110 |
+
# this ensures we don't fill up with a huge array dead weakrefs
|
| 111 |
+
@thread_object_registry = grep defined, @thread_object_registry;
|
| 112 |
+
Scalar::Util::weaken( $_ ) for @thread_object_registry;
|
| 113 |
+
$count = 0;
|
| 114 |
+
}
|
| 115 |
+
} else {
|
| 116 |
+
$count++; # used in the warning
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
return $s;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
my $storable_format_version = join("/", __PACKAGE__, "0.01");
|
| 124 |
+
|
| 125 |
+
sub STORABLE_freeze {
|
| 126 |
+
my ( $self, $is_cloning ) = @_;
|
| 127 |
+
my ( $refs, $reg ) = @$self;
|
| 128 |
+
return ( $storable_format_version, [ values %$refs ], $reg || {} );
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
sub STORABLE_thaw {
|
| 132 |
+
my ( $self, $is_cloning, $version, $refs, $reg ) = @_;
|
| 133 |
+
Carp::croak "incompatible versions of Tie::RefHash between freeze and thaw"
|
| 134 |
+
unless $version eq $storable_format_version;
|
| 135 |
+
|
| 136 |
+
@$self = ( {}, $reg );
|
| 137 |
+
$self->_reindex_keys( $refs );
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
sub CLONE {
|
| 141 |
+
my $pkg = shift;
|
| 142 |
+
|
| 143 |
+
if ( $count and not _HAS_WEAKEN ) {
|
| 144 |
+
warn "Tie::RefHash is not threadsafe without Scalar::Util::weaken";
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
# when the thread has been cloned all the objects need to be updated.
|
| 148 |
+
# dead weakrefs are undefined, so we filter them out
|
| 149 |
+
@thread_object_registry = grep defined && do { $_->_reindex_keys; 1 }, @thread_object_registry;
|
| 150 |
+
Scalar::Util::weaken( $_ ) for @thread_object_registry;
|
| 151 |
+
$count = 0; # we just cleaned up
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
sub _reindex_keys {
|
| 155 |
+
my ( $self, $extra_keys ) = @_;
|
| 156 |
+
# rehash all the ref keys based on their new StrVal
|
| 157 |
+
%{ $self->[0] } = map +(refaddr($_->[0]) => $_), (values(%{ $self->[0] }), @{ $extra_keys || [] });
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
sub FETCH {
|
| 161 |
+
my($s, $k) = @_;
|
| 162 |
+
if (ref $k) {
|
| 163 |
+
my $kstr = refaddr($k);
|
| 164 |
+
if (defined $s->[0]{$kstr}) {
|
| 165 |
+
$s->[0]{$kstr}[1];
|
| 166 |
+
}
|
| 167 |
+
else {
|
| 168 |
+
undef;
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
else {
|
| 172 |
+
$s->[1]{$k};
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
sub STORE {
|
| 177 |
+
my($s, $k, $v) = @_;
|
| 178 |
+
if (ref $k) {
|
| 179 |
+
$s->[0]{refaddr($k)} = [$k, $v];
|
| 180 |
+
}
|
| 181 |
+
else {
|
| 182 |
+
$s->[1]{$k} = $v;
|
| 183 |
+
}
|
| 184 |
+
$v;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
sub DELETE {
|
| 188 |
+
my($s, $k) = @_;
|
| 189 |
+
(ref $k)
|
| 190 |
+
? (delete($s->[0]{refaddr($k)}) || [])->[1]
|
| 191 |
+
: delete($s->[1]{$k});
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
sub EXISTS {
|
| 195 |
+
my($s, $k) = @_;
|
| 196 |
+
(ref $k) ? exists($s->[0]{refaddr($k)}) : exists($s->[1]{$k});
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
sub FIRSTKEY {
|
| 200 |
+
my $s = shift;
|
| 201 |
+
keys %{$s->[0]}; # reset iterator
|
| 202 |
+
keys %{$s->[1]}; # reset iterator
|
| 203 |
+
$s->[2] = 0; # flag for iteration, see NEXTKEY
|
| 204 |
+
$s->NEXTKEY;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
sub NEXTKEY {
|
| 208 |
+
my $s = shift;
|
| 209 |
+
my ($k, $v);
|
| 210 |
+
if (!$s->[2]) {
|
| 211 |
+
if (($k, $v) = each %{$s->[0]}) {
|
| 212 |
+
return $v->[0];
|
| 213 |
+
}
|
| 214 |
+
else {
|
| 215 |
+
$s->[2] = 1;
|
| 216 |
+
}
|
| 217 |
+
}
|
| 218 |
+
return each %{$s->[1]};
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
sub CLEAR {
|
| 222 |
+
my $s = shift;
|
| 223 |
+
$s->[2] = 0;
|
| 224 |
+
%{$s->[0]} = ();
|
| 225 |
+
%{$s->[1]} = ();
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
package # hide from PAUSE
|
| 229 |
+
Tie::RefHash::Nestable;
|
| 230 |
+
our @ISA = 'Tie::RefHash';
|
| 231 |
+
|
| 232 |
+
sub STORE {
|
| 233 |
+
my($s, $k, $v) = @_;
|
| 234 |
+
if (ref($v) eq 'HASH' and not tied %$v) {
|
| 235 |
+
my @elems = %$v;
|
| 236 |
+
tie %$v, ref($s), @elems;
|
| 237 |
+
}
|
| 238 |
+
$s->SUPER::STORE($k, $v);
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
1;
|
| 242 |
+
|
| 243 |
+
__END__
|
| 244 |
+
|
| 245 |
+
=pod
|
| 246 |
+
|
| 247 |
+
=encoding UTF-8
|
| 248 |
+
|
| 249 |
+
=head1 NAME
|
| 250 |
+
|
| 251 |
+
Tie::RefHash - Use references as hash keys
|
| 252 |
+
|
| 253 |
+
=head1 VERSION
|
| 254 |
+
|
| 255 |
+
version 1.41
|
| 256 |
+
|
| 257 |
+
=head1 SYNOPSIS
|
| 258 |
+
|
| 259 |
+
require 5.004;
|
| 260 |
+
use Tie::RefHash;
|
| 261 |
+
tie HASHVARIABLE, 'Tie::RefHash', LIST;
|
| 262 |
+
tie HASHVARIABLE, 'Tie::RefHash::Nestable', LIST;
|
| 263 |
+
|
| 264 |
+
untie HASHVARIABLE;
|
| 265 |
+
|
| 266 |
+
=head1 DESCRIPTION
|
| 267 |
+
|
| 268 |
+
This module provides the ability to use references as hash keys if you
|
| 269 |
+
first C<tie> the hash variable to this module. Normally, only the
|
| 270 |
+
keys of the tied hash itself are preserved as references; to use
|
| 271 |
+
references as keys in hashes-of-hashes, use Tie::RefHash::Nestable,
|
| 272 |
+
included as part of Tie::RefHash.
|
| 273 |
+
|
| 274 |
+
It is implemented using the standard perl TIEHASH interface. Please
|
| 275 |
+
see the C<tie> entry in perlfunc(1) and perltie(1) for more information.
|
| 276 |
+
|
| 277 |
+
The Nestable version works by looking for hash references being stored
|
| 278 |
+
and converting them to tied hashes so that they too can have
|
| 279 |
+
references as keys. This will happen without warning whenever you
|
| 280 |
+
store a reference to one of your own hashes in the tied hash.
|
| 281 |
+
|
| 282 |
+
=head1 EXAMPLE
|
| 283 |
+
|
| 284 |
+
use Tie::RefHash;
|
| 285 |
+
tie %h, 'Tie::RefHash';
|
| 286 |
+
$a = [];
|
| 287 |
+
$b = {};
|
| 288 |
+
$c = \*main;
|
| 289 |
+
$d = \"gunk";
|
| 290 |
+
$e = sub { 'foo' };
|
| 291 |
+
%h = ($a => 1, $b => 2, $c => 3, $d => 4, $e => 5);
|
| 292 |
+
$a->[0] = 'foo';
|
| 293 |
+
$b->{foo} = 'bar';
|
| 294 |
+
for (keys %h) {
|
| 295 |
+
print ref($_), "\n";
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
tie %h, 'Tie::RefHash::Nestable';
|
| 299 |
+
$h{$a}->{$b} = 1;
|
| 300 |
+
for (keys %h, keys %{$h{$a}}) {
|
| 301 |
+
print ref($_), "\n";
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
=head1 THREAD SUPPORT
|
| 305 |
+
|
| 306 |
+
L<Tie::RefHash> fully supports threading using the C<CLONE> method.
|
| 307 |
+
|
| 308 |
+
=head1 STORABLE SUPPORT
|
| 309 |
+
|
| 310 |
+
L<Storable> hooks are provided for semantically correct serialization and
|
| 311 |
+
cloning of tied refhashes.
|
| 312 |
+
|
| 313 |
+
=head1 SEE ALSO
|
| 314 |
+
|
| 315 |
+
perl(1), perlfunc(1), perltie(1)
|
| 316 |
+
|
| 317 |
+
=head1 SUPPORT
|
| 318 |
+
|
| 319 |
+
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Tie-RefHash>
|
| 320 |
+
(or L<bug-Tie-RefHash@rt.cpan.org|mailto:bug-Tie-RefHash@rt.cpan.org>).
|
| 321 |
+
|
| 322 |
+
=head1 AUTHORS
|
| 323 |
+
|
| 324 |
+
Gurusamy Sarathy <gsar@activestate.com>
|
| 325 |
+
|
| 326 |
+
Tie::RefHash::Nestable by Ed Avis <ed@membled.com>
|
| 327 |
+
|
| 328 |
+
=head1 CONTRIBUTORS
|
| 329 |
+
|
| 330 |
+
=for stopwords Yuval Kogman Karen Etheridge Florian Ragwitz Lukas Mai Jerry D. Hedden tusooa
|
| 331 |
+
|
| 332 |
+
=over 4
|
| 333 |
+
|
| 334 |
+
=item *
|
| 335 |
+
|
| 336 |
+
Yuval Kogman <nothingmuch@woobling.org>
|
| 337 |
+
|
| 338 |
+
=item *
|
| 339 |
+
|
| 340 |
+
Karen Etheridge <ether@cpan.org>
|
| 341 |
+
|
| 342 |
+
=item *
|
| 343 |
+
|
| 344 |
+
Florian Ragwitz <rafl@debian.org>
|
| 345 |
+
|
| 346 |
+
=item *
|
| 347 |
+
|
| 348 |
+
Lukas Mai <lukasmai.403@gmail.com>
|
| 349 |
+
|
| 350 |
+
=item *
|
| 351 |
+
|
| 352 |
+
Jerry D. Hedden <jdhedden@cpan.org>
|
| 353 |
+
|
| 354 |
+
=item *
|
| 355 |
+
|
| 356 |
+
tusooa <tusooa@kazv.moe>
|
| 357 |
+
|
| 358 |
+
=back
|
| 359 |
+
|
| 360 |
+
=head1 COPYRIGHT AND LICENCE
|
| 361 |
+
|
| 362 |
+
This software is copyright (c) 2006 by יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>.
|
| 363 |
+
|
| 364 |
+
This is free software; you can redistribute it and/or modify it under
|
| 365 |
+
the same terms as the Perl 5 programming language system itself.
|
| 366 |
+
|
| 367 |
+
=cut
|
git/usr/share/perl5/core_perl/Tie/Scalar.pm
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
|
| 7 |
+
Tie::Scalar, Tie::StdScalar - base class definitions for tied scalars
|
| 8 |
+
|
| 9 |
+
=head1 SYNOPSIS
|
| 10 |
+
|
| 11 |
+
package NewScalar;
|
| 12 |
+
require Tie::Scalar;
|
| 13 |
+
|
| 14 |
+
@ISA = qw(Tie::Scalar);
|
| 15 |
+
|
| 16 |
+
sub FETCH { ... } # Provide a needed method
|
| 17 |
+
sub TIESCALAR { ... } # Overrides inherited method
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
package NewStdScalar;
|
| 21 |
+
require Tie::Scalar;
|
| 22 |
+
|
| 23 |
+
@ISA = qw(Tie::StdScalar);
|
| 24 |
+
|
| 25 |
+
# All methods provided by default, so define
|
| 26 |
+
# only what needs be overridden
|
| 27 |
+
sub FETCH { ... }
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
package main;
|
| 31 |
+
|
| 32 |
+
tie $new_scalar, 'NewScalar';
|
| 33 |
+
tie $new_std_scalar, 'NewStdScalar';
|
| 34 |
+
|
| 35 |
+
=head1 DESCRIPTION
|
| 36 |
+
|
| 37 |
+
This module provides some skeletal methods for scalar-tying classes. See
|
| 38 |
+
L<perltie> for a list of the functions required in tying a scalar to a
|
| 39 |
+
package. The basic B<Tie::Scalar> package provides a C<new> method, as well
|
| 40 |
+
as methods C<TIESCALAR>, C<FETCH> and C<STORE>. The B<Tie::StdScalar>
|
| 41 |
+
package provides all the methods specified in L<perltie>. It inherits from
|
| 42 |
+
B<Tie::Scalar> and causes scalars tied to it to behave exactly like the
|
| 43 |
+
built-in scalars, allowing for selective overloading of methods. The C<new>
|
| 44 |
+
method is provided as a means of legacy support for classes that forget to
|
| 45 |
+
provide their own C<TIESCALAR> method.
|
| 46 |
+
|
| 47 |
+
For developers wishing to write their own tied-scalar classes, the methods
|
| 48 |
+
are summarized below. The L<perltie> section not only documents these, but
|
| 49 |
+
has sample code as well:
|
| 50 |
+
|
| 51 |
+
=over 4
|
| 52 |
+
|
| 53 |
+
=item TIESCALAR classname, LIST
|
| 54 |
+
|
| 55 |
+
The method invoked by the command C<tie $scalar, classname>. Associates a new
|
| 56 |
+
scalar instance with the specified class. C<LIST> would represent additional
|
| 57 |
+
arguments (along the lines of L<AnyDBM_File> and compatriots) needed to
|
| 58 |
+
complete the association.
|
| 59 |
+
|
| 60 |
+
=item FETCH this
|
| 61 |
+
|
| 62 |
+
Retrieve the value of the tied scalar referenced by I<this>.
|
| 63 |
+
|
| 64 |
+
=item STORE this, value
|
| 65 |
+
|
| 66 |
+
Store data I<value> in the tied scalar referenced by I<this>.
|
| 67 |
+
|
| 68 |
+
=item DESTROY this
|
| 69 |
+
|
| 70 |
+
Free the storage associated with the tied scalar referenced by I<this>.
|
| 71 |
+
This is rarely needed, as Perl manages its memory quite well. But the
|
| 72 |
+
option exists, should a class wish to perform specific actions upon the
|
| 73 |
+
destruction of an instance.
|
| 74 |
+
|
| 75 |
+
=back
|
| 76 |
+
|
| 77 |
+
=head2 Tie::Scalar vs Tie::StdScalar
|
| 78 |
+
|
| 79 |
+
C<< Tie::Scalar >> provides all the necessary methods, but one should realize
|
| 80 |
+
they do not do anything useful. Calling C<< Tie::Scalar::FETCH >> or
|
| 81 |
+
C<< Tie::Scalar::STORE >> results in a (trappable) croak. And if you inherit
|
| 82 |
+
from C<< Tie::Scalar >>, you I<must> provide either a C<< new >> or a
|
| 83 |
+
C<< TIESCALAR >> method.
|
| 84 |
+
|
| 85 |
+
If you are looking for a class that does everything for you that you don't
|
| 86 |
+
define yourself, use the C<< Tie::StdScalar >> class, not the
|
| 87 |
+
C<< Tie::Scalar >> one.
|
| 88 |
+
|
| 89 |
+
=head1 MORE INFORMATION
|
| 90 |
+
|
| 91 |
+
The L<perltie> section uses a good example of tying scalars by associating
|
| 92 |
+
process IDs with priority.
|
| 93 |
+
|
| 94 |
+
=cut
|
| 95 |
+
|
| 96 |
+
use Carp;
|
| 97 |
+
use warnings::register;
|
| 98 |
+
|
| 99 |
+
sub new {
|
| 100 |
+
my $pkg = shift;
|
| 101 |
+
$pkg->TIESCALAR(@_);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
# Legacy support for new(), a la Tie::Hash
|
| 105 |
+
|
| 106 |
+
sub TIESCALAR {
|
| 107 |
+
my $pkg = shift;
|
| 108 |
+
my $pkg_new = $pkg -> can ('new');
|
| 109 |
+
|
| 110 |
+
if ($pkg_new and $pkg ne __PACKAGE__) {
|
| 111 |
+
my $my_new = __PACKAGE__ -> can ('new');
|
| 112 |
+
if ($pkg_new == $my_new) {
|
| 113 |
+
#
|
| 114 |
+
# Prevent recursion
|
| 115 |
+
#
|
| 116 |
+
croak "$pkg must define either a TIESCALAR() or a new() method";
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
warnings::warnif ("WARNING: calling ${pkg}->new since " .
|
| 120 |
+
"${pkg}->TIESCALAR is missing");
|
| 121 |
+
$pkg -> new (@_);
|
| 122 |
+
}
|
| 123 |
+
else {
|
| 124 |
+
croak "$pkg doesn't define a TIESCALAR method";
|
| 125 |
+
}
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
sub FETCH {
|
| 129 |
+
my $pkg = ref $_[0];
|
| 130 |
+
croak "$pkg doesn't define a FETCH method";
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
sub STORE {
|
| 134 |
+
my $pkg = ref $_[0];
|
| 135 |
+
croak "$pkg doesn't define a STORE method";
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
#
|
| 139 |
+
# The Tie::StdScalar package provides scalars that behave exactly like
|
| 140 |
+
# Perl's built-in scalars. Good base to inherit from, if you're only going to
|
| 141 |
+
# tweak a small bit.
|
| 142 |
+
#
|
| 143 |
+
package Tie::StdScalar;
|
| 144 |
+
@ISA = qw(Tie::Scalar);
|
| 145 |
+
|
| 146 |
+
sub TIESCALAR {
|
| 147 |
+
my $class = shift;
|
| 148 |
+
my $instance = @_ ? shift : undef;
|
| 149 |
+
return bless \$instance => $class;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
sub FETCH {
|
| 153 |
+
return ${$_[0]};
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
sub STORE {
|
| 157 |
+
${$_[0]} = $_[1];
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
sub DESTROY {
|
| 161 |
+
undef ${$_[0]};
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
1;
|
git/usr/share/perl5/core_perl/Tie/StdHandle.pm
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Tie::StdHandle;
|
| 2 |
+
|
| 3 |
+
use strict;
|
| 4 |
+
|
| 5 |
+
use Tie::Handle;
|
| 6 |
+
our @ISA = 'Tie::Handle';
|
| 7 |
+
our $VERSION = '4.6';
|
| 8 |
+
|
| 9 |
+
=head1 NAME
|
| 10 |
+
|
| 11 |
+
Tie::StdHandle - base class definitions for tied handles
|
| 12 |
+
|
| 13 |
+
=head1 SYNOPSIS
|
| 14 |
+
|
| 15 |
+
package NewHandle;
|
| 16 |
+
require Tie::Handle;
|
| 17 |
+
|
| 18 |
+
@ISA = qw(Tie::Handle);
|
| 19 |
+
|
| 20 |
+
sub READ { ... } # Provide a needed method
|
| 21 |
+
sub TIEHANDLE { ... } # Overrides inherited method
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
package main;
|
| 25 |
+
|
| 26 |
+
tie *FH, 'NewHandle';
|
| 27 |
+
|
| 28 |
+
=head1 DESCRIPTION
|
| 29 |
+
|
| 30 |
+
The B<Tie::StdHandle> package provide most methods for file handles described
|
| 31 |
+
in L<perltie> (the exceptions are C<UNTIE> and C<DESTROY>). It causes tied
|
| 32 |
+
file handles to behave exactly like standard file handles and allow for
|
| 33 |
+
selective overwriting of methods.
|
| 34 |
+
|
| 35 |
+
=cut
|
| 36 |
+
|
| 37 |
+
sub TIEHANDLE
|
| 38 |
+
{
|
| 39 |
+
my $class = shift;
|
| 40 |
+
my $fh = \do { local *HANDLE};
|
| 41 |
+
bless $fh,$class;
|
| 42 |
+
$fh->OPEN(@_) if (@_);
|
| 43 |
+
return $fh;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
sub EOF { eof($_[0]) }
|
| 47 |
+
sub TELL { tell($_[0]) }
|
| 48 |
+
sub FILENO { fileno($_[0]) }
|
| 49 |
+
sub SEEK { seek($_[0],$_[1],$_[2]) }
|
| 50 |
+
sub CLOSE { close($_[0]) }
|
| 51 |
+
sub BINMODE { &CORE::binmode(shift, @_) }
|
| 52 |
+
|
| 53 |
+
sub OPEN
|
| 54 |
+
{
|
| 55 |
+
$_[0]->CLOSE if defined($_[0]->FILENO);
|
| 56 |
+
@_ == 2 ? open($_[0], $_[1]) : open($_[0], $_[1], $_[2]);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
sub READ { &CORE::read(shift, \shift, @_) }
|
| 60 |
+
sub READLINE { my $fh = $_[0]; <$fh> }
|
| 61 |
+
sub GETC { getc($_[0]) }
|
| 62 |
+
|
| 63 |
+
sub WRITE
|
| 64 |
+
{
|
| 65 |
+
my $fh = $_[0];
|
| 66 |
+
local $\; # don't print any line terminator
|
| 67 |
+
print $fh substr($_[1], $_[3], $_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Tie::SubstrHash 1.01;
|
| 2 |
+
|
| 3 |
+
=head1 NAME
|
| 4 |
+
|
| 5 |
+
Tie::SubstrHash - Fixed-table-size, fixed-key-length hashing
|
| 6 |
+
|
| 7 |
+
=head1 SYNOPSIS
|
| 8 |
+
|
| 9 |
+
require Tie::SubstrHash;
|
| 10 |
+
|
| 11 |
+
tie %myhash, 'Tie::SubstrHash', $key_len, $value_len, $table_size;
|
| 12 |
+
|
| 13 |
+
=head1 DESCRIPTION
|
| 14 |
+
|
| 15 |
+
The B<Tie::SubstrHash> package provides a hash-table-like interface to
|
| 16 |
+
an array of determinate size, with constant key size and record size.
|
| 17 |
+
|
| 18 |
+
Upon tying a new hash to this package, the developer must specify the
|
| 19 |
+
size of the keys that will be used, the size of the value fields that the
|
| 20 |
+
keys will index, and the size of the overall table (in terms of key-value
|
| 21 |
+
pairs, not size in hard memory). I<These values will not change for the
|
| 22 |
+
duration of the tied hash>. The newly-allocated hash table may now have
|
| 23 |
+
data stored and retrieved. Efforts to store more than C<$table_size>
|
| 24 |
+
elements will result in a fatal error, as will efforts to store a value
|
| 25 |
+
not exactly C<$value_len> characters in length, or reference through a
|
| 26 |
+
key not exactly C<$key_len> characters in length. While these constraints
|
| 27 |
+
may seem excessive, the result is a hash table using much less internal
|
| 28 |
+
memory than an equivalent freely-allocated hash table.
|
| 29 |
+
|
| 30 |
+
=head1 CAVEATS
|
| 31 |
+
|
| 32 |
+
Because the current implementation uses the table and key sizes for the
|
| 33 |
+
hashing algorithm, there is no means by which to dynamically change the
|
| 34 |
+
value of any of the initialization parameters.
|
| 35 |
+
|
| 36 |
+
The hash does not support exists().
|
| 37 |
+
|
| 38 |
+
=cut
|
| 39 |
+
|
| 40 |
+
use strict;
|
| 41 |
+
use warnings;
|
| 42 |
+
no warnings 'experimental::builtin';
|
| 43 |
+
|
| 44 |
+
use Carp;
|
| 45 |
+
|
| 46 |
+
sub TIEHASH {
|
| 47 |
+
my ($pack, $klen, $vlen, $tsize) = @_;
|
| 48 |
+
my $rlen = 1 + $klen + $vlen;
|
| 49 |
+
$tsize = [$tsize, findgteprime($tsize * 1.1)]; # Allow 10% empty.
|
| 50 |
+
my $self = bless ["\0", $klen, $vlen, $tsize, $rlen, 0, -1];
|
| 51 |
+
$self->[0] x= $rlen * $tsize->[1];
|
| 52 |
+
$self;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
sub CLEAR {
|
| 56 |
+
my ($self) = @_;
|
| 57 |
+
$self->[0] = "\0" x ($self->[4] * $self->[3][1]);
|
| 58 |
+
$self->[5] = 0;
|
| 59 |
+
$self->[6] = -1;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
sub FETCH {
|
| 63 |
+
my ($self, $key) = @_;
|
| 64 |
+
my (undef, $klen, $vlen, $tsize, $rlen) = @$self;
|
| 65 |
+
my $hashbase = my $hash = hashkey($key, $klen, $tsize);
|
| 66 |
+
while (1) {
|
| 67 |
+
my $offset = $hash * $rlen;
|
| 68 |
+
my $record = substr($self->[0], $offset, $rlen);
|
| 69 |
+
if (ord($record) == 0) {
|
| 70 |
+
return undef;
|
| 71 |
+
}
|
| 72 |
+
elsif (ord($record) == 1) {
|
| 73 |
+
}
|
| 74 |
+
elsif (substr($record, 1, $klen) eq $key) {
|
| 75 |
+
return substr($record, 1+$klen, $vlen);
|
| 76 |
+
}
|
| 77 |
+
$hash = rehash($hash, $hashbase, $tsize);
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
sub STORE {
|
| 82 |
+
my ($self, $key, $val) = @_;
|
| 83 |
+
my (undef, $klen, $vlen, $tsize, $rlen) = @$self;
|
| 84 |
+
croak("Table is full ($tsize->[0] elements)") if $self->[5] > $tsize->[0];
|
| 85 |
+
croak(qq/Value "$val" is not $vlen characters long/)
|
| 86 |
+
if length($val) != $vlen;
|
| 87 |
+
my $writeoffset;
|
| 88 |
+
|
| 89 |
+
my $hashbase = my $hash = hashkey($key, $klen, $tsize);
|
| 90 |
+
while (1) {
|
| 91 |
+
my $offset = $hash * $rlen;
|
| 92 |
+
my $record = substr($self->[0], $offset, $rlen);
|
| 93 |
+
if (ord($record) == 0) {
|
| 94 |
+
$record = "\2". $key . $val;
|
| 95 |
+
die "panic" unless length($record) == $rlen;
|
| 96 |
+
$writeoffset //= $offset;
|
| 97 |
+
substr($self->[0], $writeoffset, $rlen) = $record;
|
| 98 |
+
++$self->[5];
|
| 99 |
+
return;
|
| 100 |
+
}
|
| 101 |
+
elsif (ord($record) == 1) {
|
| 102 |
+
$writeoffset //= $offset;
|
| 103 |
+
}
|
| 104 |
+
elsif (substr($record, 1, $klen) eq $key) {
|
| 105 |
+
$record = "\2". $key . $val;
|
| 106 |
+
die "panic" unless length($record) == $rlen;
|
| 107 |
+
substr($self->[0], $offset, $rlen) = $record;
|
| 108 |
+
return;
|
| 109 |
+
}
|
| 110 |
+
$hash = rehash($hash, $hashbase, $tsize);
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
sub DELETE {
|
| 115 |
+
my ($self, $key) = @_;
|
| 116 |
+
my (undef, $klen, $vlen, $tsize, $rlen) = @$self;
|
| 117 |
+
my $hashbase = my $hash = hashkey($key, $klen, $tsize);
|
| 118 |
+
while (1) {
|
| 119 |
+
my $offset = $hash * $rlen;
|
| 120 |
+
my $record = substr($self->[0], $offset, $rlen);
|
| 121 |
+
if (ord($record) == 0) {
|
| 122 |
+
return undef;
|
| 123 |
+
}
|
| 124 |
+
elsif (ord($record) == 1) {
|
| 125 |
+
}
|
| 126 |
+
elsif (substr($record, 1, $klen) eq $key) {
|
| 127 |
+
substr($self->[0], $offset, 1) = "\1";
|
| 128 |
+
return substr($record, 1+$klen, $vlen);
|
| 129 |
+
--$self->[5];
|
| 130 |
+
}
|
| 131 |
+
$hash = rehash($hash, $hashbase, $tsize);
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
sub FIRSTKEY {
|
| 136 |
+
my ($self) = @_;
|
| 137 |
+
$self->[6] = -1;
|
| 138 |
+
goto &NEXTKEY;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
sub NEXTKEY {
|
| 142 |
+
my ($self) = @_;
|
| 143 |
+
my (undef, $klen, $vlen, $tsize, $rlen, $entries, $iterix) = @$self;
|
| 144 |
+
for (++$iterix; $iterix < $tsize->[1]; ++$iterix) {
|
| 145 |
+
next unless substr($self->[0], $iterix * $rlen, 1) eq "\2";
|
| 146 |
+
$self->[6] = $iterix;
|
| 147 |
+
return substr($self->[0], $iterix * $rlen + 1, $klen);
|
| 148 |
+
}
|
| 149 |
+
$self->[6] = -1;
|
| 150 |
+
undef;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
sub EXISTS {
|
| 154 |
+
croak "Tie::SubstrHash does not support exists()";
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
sub hashkey {
|
| 158 |
+
my ($key, $klen, $tsize) = @_;
|
| 159 |
+
croak(qq/Key "$key" is not $klen characters long/)
|
| 160 |
+
if length($key) != $klen;
|
| 161 |
+
my $hash = 2;
|
| 162 |
+
for (unpack('C*', $key)) {
|
| 163 |
+
$hash = $hash * 33 + $_;
|
| 164 |
+
$hash = _hashwrap($hash, $tsize) if $hash >= 1e13;
|
| 165 |
+
}
|
| 166 |
+
$hash = _hashwrap($hash, $tsize) if $hash >= $tsize->[1];
|
| 167 |
+
$hash ||= 1;
|
| 168 |
+
return $hash;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
sub _hashwrap {
|
| 172 |
+
my ($hash, $tsize) = @_;
|
| 173 |
+
return $hash - int($hash / $tsize->[1]) * $tsize->[1];
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
sub rehash {
|
| 177 |
+
my ($hash, $hashbase, $tsize) = @_;
|
| 178 |
+
$hash += $hashbase;
|
| 179 |
+
$hash -= $tsize->[1] if $hash >= $tsize->[1];
|
| 180 |
+
return $hash;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
# See:
|
| 184 |
+
#
|
| 185 |
+
# http://www-groups.dcs.st-andrews.ac.uk/~history/HistTopics/Prime_numbers.html
|
| 186 |
+
#
|
| 187 |
+
|
| 188 |
+
sub findgteprime { # find the smallest prime integer greater than or equal to
|
| 189 |
+
use integer;
|
| 190 |
+
|
| 191 |
+
my $num = builtin::ceil(shift);
|
| 192 |
+
return 2 if $num <= 2;
|
| 193 |
+
|
| 194 |
+
$num++ unless $num % 2;
|
| 195 |
+
my $sqrtnum = int sqrt $num;
|
| 196 |
+
my $sqrtnumsquared = $sqrtnum * $sqrtnum;
|
| 197 |
+
|
| 198 |
+
NUM:
|
| 199 |
+
for (;; $num += 2) {
|
| 200 |
+
if ($sqrtnumsquared < $num) {
|
| 201 |
+
$sqrtnum++;
|
| 202 |
+
$sqrtnumsquared = $sqrtnum * $sqrtnum;
|
| 203 |
+
}
|
| 204 |
+
for (my $i = 3; $i <= $sqrtnum; $i += 2) {
|
| 205 |
+
next NUM unless $num % $i;
|
| 206 |
+
}
|
| 207 |
+
return $num;
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
1;
|
git/usr/share/perl5/core_perl/Time/Local.pm
ADDED
|
@@ -0,0 +1,547 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Time::Local;
|
| 2 |
+
|
| 3 |
+
use strict;
|
| 4 |
+
|
| 5 |
+
use Carp ();
|
| 6 |
+
use Exporter;
|
| 7 |
+
|
| 8 |
+
our $VERSION = '1.35';
|
| 9 |
+
|
| 10 |
+
use parent 'Exporter';
|
| 11 |
+
|
| 12 |
+
our @EXPORT = qw( timegm timelocal );
|
| 13 |
+
our @EXPORT_OK = qw(
|
| 14 |
+
timegm_modern
|
| 15 |
+
timelocal_modern
|
| 16 |
+
timegm_nocheck
|
| 17 |
+
timelocal_nocheck
|
| 18 |
+
timegm_posix
|
| 19 |
+
timelocal_posix
|
| 20 |
+
);
|
| 21 |
+
|
| 22 |
+
my @MonthDays = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
|
| 23 |
+
|
| 24 |
+
# Determine breakpoint for rolling century
|
| 25 |
+
my $ThisYear = ( localtime() )[5];
|
| 26 |
+
my $Breakpoint = ( $ThisYear + 50 ) % 100;
|
| 27 |
+
my $NextCentury = $ThisYear - $ThisYear % 100;
|
| 28 |
+
$NextCentury += 100 if $Breakpoint < 50;
|
| 29 |
+
my $Century = $NextCentury - 100;
|
| 30 |
+
my $SecOff = 0;
|
| 31 |
+
|
| 32 |
+
my ( %Options, %Cheat );
|
| 33 |
+
|
| 34 |
+
use constant SECS_PER_MINUTE => 60;
|
| 35 |
+
use constant SECS_PER_HOUR => 3600;
|
| 36 |
+
use constant SECS_PER_DAY => 86400;
|
| 37 |
+
|
| 38 |
+
my $MaxDay;
|
| 39 |
+
if ( $] < 5.012000 ) {
|
| 40 |
+
require Config;
|
| 41 |
+
## no critic (Variables::ProhibitPackageVars)
|
| 42 |
+
|
| 43 |
+
my $MaxInt;
|
| 44 |
+
if ( $^O eq 'MacOS' ) {
|
| 45 |
+
|
| 46 |
+
# time_t is unsigned...
|
| 47 |
+
$MaxInt = ( 1 << ( 8 * $Config::Config{ivsize} ) )
|
| 48 |
+
- 1; ## no critic qw(ProhibitPackageVars)
|
| 49 |
+
}
|
| 50 |
+
else {
|
| 51 |
+
$MaxInt
|
| 52 |
+
= ( ( 1 << ( 8 * $Config::Config{ivsize} - 2 ) ) - 1 ) * 2
|
| 53 |
+
+ 1; ## no critic qw(ProhibitPackageVars)
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
$MaxDay = int( ( $MaxInt - ( SECS_PER_DAY / 2 ) ) / SECS_PER_DAY ) - 1;
|
| 57 |
+
}
|
| 58 |
+
else {
|
| 59 |
+
# recent localtime()'s limit is the year 2**31
|
| 60 |
+
$MaxDay = 365 * ( 2**31 );
|
| 61 |
+
|
| 62 |
+
# On (some?) 32-bit platforms this overflows and we end up with a negative
|
| 63 |
+
# $MaxDay, which totally breaks this module. This is the old calculation
|
| 64 |
+
# we used from the days before Perl always had 64-bit time_t.
|
| 65 |
+
if ( $MaxDay < 0 ) {
|
| 66 |
+
require Config;
|
| 67 |
+
## no critic (Variables::ProhibitPackageVars)
|
| 68 |
+
my $max_int
|
| 69 |
+
= ( ( 1 << ( 8 * $Config::Config{intsize} - 2 ) ) - 1 ) * 2 + 1;
|
| 70 |
+
$MaxDay
|
| 71 |
+
= int( ( $max_int - ( SECS_PER_DAY / 2 ) ) / SECS_PER_DAY ) - 1;
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
# Determine the EPOC day for this machine
|
| 76 |
+
my $Epoc = 0;
|
| 77 |
+
if ( $^O eq 'vos' ) {
|
| 78 |
+
|
| 79 |
+
# work around posix-977 -- VOS doesn't handle dates in the range
|
| 80 |
+
# 1970-1980.
|
| 81 |
+
$Epoc = _daygm( 0, 0, 0, 1, 0, 70, 4, 0 );
|
| 82 |
+
}
|
| 83 |
+
elsif ( $^O eq 'MacOS' ) {
|
| 84 |
+
$MaxDay *= 2; # time_t unsigned ... quick hack?
|
| 85 |
+
# MacOS time() is seconds since 1 Jan 1904, localtime
|
| 86 |
+
# so we need to calculate an offset to apply later
|
| 87 |
+
$Epoc = 693901;
|
| 88 |
+
$SecOff = timelocal( localtime(0) ) - timelocal( gmtime(0) );
|
| 89 |
+
$Epoc += _daygm( gmtime(0) );
|
| 90 |
+
}
|
| 91 |
+
else {
|
| 92 |
+
$Epoc = _daygm( gmtime(0) );
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
%Cheat = (); # clear the cache as epoc has changed
|
| 96 |
+
|
| 97 |
+
sub _daygm {
|
| 98 |
+
|
| 99 |
+
# This is written in such a byzantine way in order to avoid
|
| 100 |
+
# lexical variables and sub calls, for speed
|
| 101 |
+
return $_[3] + (
|
| 102 |
+
$Cheat{ pack( 'ss', @_[ 4, 5 ] ) } ||= do {
|
| 103 |
+
my $month = ( $_[4] + 10 ) % 12;
|
| 104 |
+
my $year = $_[5] + 1900 - int( $month / 10 );
|
| 105 |
+
|
| 106 |
+
( ( 365 * $year )
|
| 107 |
+
+ int( $year / 4 )
|
| 108 |
+
- int( $year / 100 )
|
| 109 |
+
+ int( $year / 400 )
|
| 110 |
+
+ int( ( ( $month * 306 ) + 5 ) / 10 ) )
|
| 111 |
+
- $Epoc;
|
| 112 |
+
}
|
| 113 |
+
);
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
sub _timegm {
|
| 117 |
+
my $sec
|
| 118 |
+
= $SecOff + $_[0]
|
| 119 |
+
+ ( SECS_PER_MINUTE * $_[1] )
|
| 120 |
+
+ ( SECS_PER_HOUR * $_[2] );
|
| 121 |
+
|
| 122 |
+
return $sec + ( SECS_PER_DAY * &_daygm );
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
sub timegm {
|
| 126 |
+
my ( $sec, $min, $hour, $mday, $month, $year ) = @_;
|
| 127 |
+
my $subsec = $sec - int($sec);
|
| 128 |
+
$sec = int($sec);
|
| 129 |
+
|
| 130 |
+
if ( $Options{no_year_munging} ) {
|
| 131 |
+
$year -= 1900;
|
| 132 |
+
}
|
| 133 |
+
elsif ( !$Options{posix_year} ) {
|
| 134 |
+
if ( $year >= 1000 ) {
|
| 135 |
+
$year -= 1900;
|
| 136 |
+
}
|
| 137 |
+
elsif ( $year < 100 and $year >= 0 ) {
|
| 138 |
+
$year += ( $year > $Breakpoint ) ? $Century : $NextCentury;
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
unless ( $Options{no_range_check} ) {
|
| 143 |
+
Carp::croak("Month '$month' out of range 0..11")
|
| 144 |
+
if $month > 11
|
| 145 |
+
or $month < 0;
|
| 146 |
+
|
| 147 |
+
my $md = $MonthDays[$month];
|
| 148 |
+
++$md
|
| 149 |
+
if $month == 1 && _is_leap_year( $year + 1900 );
|
| 150 |
+
|
| 151 |
+
Carp::croak("Day '$mday' out of range 1..$md")
|
| 152 |
+
if $mday > $md or $mday < 1;
|
| 153 |
+
Carp::croak("Hour '$hour' out of range 0..23")
|
| 154 |
+
if $hour > 23 or $hour < 0;
|
| 155 |
+
Carp::croak("Minute '$min' out of range 0..59")
|
| 156 |
+
if $min > 59 or $min < 0;
|
| 157 |
+
Carp::croak("Second '$sec' out of range 0..59")
|
| 158 |
+
if $sec >= 60 or $sec < 0;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
my $days = _daygm( undef, undef, undef, $mday, $month, $year );
|
| 162 |
+
|
| 163 |
+
if ( abs($days) > $MaxDay && !$Options{no_range_check} ) {
|
| 164 |
+
my $msg = "Day too big - abs($days) > $MaxDay\n";
|
| 165 |
+
|
| 166 |
+
$year += 1900;
|
| 167 |
+
$msg
|
| 168 |
+
.= "Cannot handle date ($sec, $min, $hour, $mday, $month, $year)";
|
| 169 |
+
|
| 170 |
+
Carp::croak($msg);
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
# Adding in the $subsec value last seems to prevent floating point errors
|
| 174 |
+
# from creeping in.
|
| 175 |
+
return (
|
| 176 |
+
(
|
| 177 |
+
$sec + $SecOff
|
| 178 |
+
+ ( SECS_PER_MINUTE * $min )
|
| 179 |
+
+ ( SECS_PER_HOUR * $hour )
|
| 180 |
+
+ ( SECS_PER_DAY * $days )
|
| 181 |
+
) + $subsec
|
| 182 |
+
);
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
sub _is_leap_year {
|
| 186 |
+
return 0 if $_[0] % 4;
|
| 187 |
+
return 1 if $_[0] % 100;
|
| 188 |
+
return 0 if $_[0] % 400;
|
| 189 |
+
|
| 190 |
+
return 1;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
sub timegm_nocheck {
|
| 194 |
+
local $Options{no_range_check} = 1;
|
| 195 |
+
return &timegm;
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
sub timegm_modern {
|
| 199 |
+
local $Options{no_year_munging} = 1;
|
| 200 |
+
return &timegm;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
sub timegm_posix {
|
| 204 |
+
local $Options{posix_year} = 1;
|
| 205 |
+
return &timegm;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
sub timelocal {
|
| 209 |
+
my $sec = shift;
|
| 210 |
+
my $subsec = $sec - int($sec);
|
| 211 |
+
$sec = int($sec);
|
| 212 |
+
unshift @_, $sec;
|
| 213 |
+
|
| 214 |
+
my $ref_t = &timegm;
|
| 215 |
+
my $loc_for_ref_t = _timegm( localtime($ref_t) );
|
| 216 |
+
|
| 217 |
+
my $zone_off = $loc_for_ref_t - $ref_t
|
| 218 |
+
or return $loc_for_ref_t + $subsec;
|
| 219 |
+
|
| 220 |
+
# Adjust for timezone
|
| 221 |
+
my $loc_t = $ref_t - $zone_off;
|
| 222 |
+
|
| 223 |
+
# Are we close to a DST change or are we done
|
| 224 |
+
my $dst_off = $ref_t - _timegm( localtime($loc_t) );
|
| 225 |
+
|
| 226 |
+
# If this evaluates to true, it means that the value in $loc_t is
|
| 227 |
+
# the _second_ hour after a DST change where the local time moves
|
| 228 |
+
# backward.
|
| 229 |
+
if (
|
| 230 |
+
!$dst_off
|
| 231 |
+
&& ( ( $ref_t - SECS_PER_HOUR )
|
| 232 |
+
- _timegm( localtime( $loc_t - SECS_PER_HOUR ) ) < 0 )
|
| 233 |
+
) {
|
| 234 |
+
return ( $loc_t - SECS_PER_HOUR ) + $subsec;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
# Adjust for DST change
|
| 238 |
+
$loc_t += $dst_off;
|
| 239 |
+
|
| 240 |
+
return $loc_t + $subsec if $dst_off > 0;
|
| 241 |
+
|
| 242 |
+
# If the original date was a non-existent gap in a forward DST jump, we
|
| 243 |
+
# should now have the wrong answer - undo the DST adjustment
|
| 244 |
+
my ( $s, $m, $h ) = localtime($loc_t);
|
| 245 |
+
$loc_t -= $dst_off if $s != $_[0] || $m != $_[1] || $h != $_[2];
|
| 246 |
+
|
| 247 |
+
return $loc_t + $subsec;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
sub timelocal_nocheck {
|
| 251 |
+
local $Options{no_range_check} = 1;
|
| 252 |
+
return &timelocal;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
sub timelocal_modern {
|
| 256 |
+
local $Options{no_year_munging} = 1;
|
| 257 |
+
return &timelocal;
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
sub timelocal_posix {
|
| 261 |
+
local $Options{posix_year} = 1;
|
| 262 |
+
return &timelocal;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
1;
|
| 266 |
+
|
| 267 |
+
# ABSTRACT: Efficiently compute time from local and GMT time
|
| 268 |
+
|
| 269 |
+
__END__
|
| 270 |
+
|
| 271 |
+
=pod
|
| 272 |
+
|
| 273 |
+
=encoding UTF-8
|
| 274 |
+
|
| 275 |
+
=head1 NAME
|
| 276 |
+
|
| 277 |
+
Time::Local - Efficiently compute time from local and GMT time
|
| 278 |
+
|
| 279 |
+
=head1 VERSION
|
| 280 |
+
|
| 281 |
+
version 1.35
|
| 282 |
+
|
| 283 |
+
=head1 SYNOPSIS
|
| 284 |
+
|
| 285 |
+
use Time::Local qw( timelocal_posix timegm_posix );
|
| 286 |
+
|
| 287 |
+
my $time = timelocal_posix( $sec, $min, $hour, $mday, $mon, $year );
|
| 288 |
+
my $time = timegm_posix( $sec, $min, $hour, $mday, $mon, $year );
|
| 289 |
+
|
| 290 |
+
=head1 DESCRIPTION
|
| 291 |
+
|
| 292 |
+
This module provides functions that are the inverse of built-in perl functions
|
| 293 |
+
C<localtime()> and C<gmtime()>. They accept a date as a six-element array, and
|
| 294 |
+
return the corresponding C<time(2)> value in seconds since the system epoch
|
| 295 |
+
(Midnight, January 1, 1970 GMT on Unix, for example). This value can be
|
| 296 |
+
positive or negative, though POSIX only requires support for positive values,
|
| 297 |
+
so dates before the system's epoch may not work on all operating systems.
|
| 298 |
+
|
| 299 |
+
It is worth drawing particular attention to the expected ranges for the values
|
| 300 |
+
provided. The value for the day of the month is the actual day (i.e. 1..31),
|
| 301 |
+
while the month is the number of months since January (0..11). This is
|
| 302 |
+
consistent with the values returned from C<localtime()> and C<gmtime()>.
|
| 303 |
+
|
| 304 |
+
=head1 FUNCTIONS
|
| 305 |
+
|
| 306 |
+
=head2 C<timelocal_posix()> and C<timegm_posix()>
|
| 307 |
+
|
| 308 |
+
I<Since version 1.30.>
|
| 309 |
+
|
| 310 |
+
These functions are the exact inverse of Perl's built-in C<localtime> and
|
| 311 |
+
C<gmtime> functions. That means that calling C<< timelocal_posix(
|
| 312 |
+
localtime($value) ) >> will always give you the same C<$value> you started
|
| 313 |
+
with. The same applies to C<< timegm_posix( gmtime($value) ) >>.
|
| 314 |
+
|
| 315 |
+
The one exception is when the value returned from C<localtime()> represents an
|
| 316 |
+
ambiguous local time because of a DST change. See the documentation below for
|
| 317 |
+
more details.
|
| 318 |
+
|
| 319 |
+
These functions expect the year value to be the number of years since 1900,
|
| 320 |
+
which is what the C<localtime()> and C<gmtime()> built-ins returns.
|
| 321 |
+
|
| 322 |
+
They perform range checking by default on the input C<$sec>, C<$min>, C<$hour>,
|
| 323 |
+
C<$mday>, and C<$mon> values and will croak (using C<Carp::croak()>) if given a
|
| 324 |
+
value outside the allowed ranges.
|
| 325 |
+
|
| 326 |
+
While it would be nice to make this the default behavior, that would almost
|
| 327 |
+
certainly break a lot of code, so you must explicitly import these functions
|
| 328 |
+
and use them instead of the default C<timelocal()> and C<timegm()>.
|
| 329 |
+
|
| 330 |
+
You are B<strongly> encouraged to use these functions in any new code which
|
| 331 |
+
uses this module. It will almost certainly make your code's behavior less
|
| 332 |
+
surprising.
|
| 333 |
+
|
| 334 |
+
=head2 C<timelocal_modern()> and C<timegm_modern()>
|
| 335 |
+
|
| 336 |
+
I<Since version 1.27.>
|
| 337 |
+
|
| 338 |
+
When C<Time::Local> was first written, it was a common practice to represent
|
| 339 |
+
years as a two-digit value like C<99> for C<1999> or C<1> for C<2001>. This
|
| 340 |
+
caused all sorts of problems (google "Y2K problem" if you're very young) and
|
| 341 |
+
developers eventually realized that this was a terrible idea.
|
| 342 |
+
|
| 343 |
+
The default exports of C<timelocal()> and C<timegm()> do a complicated
|
| 344 |
+
calculation when given a year value less than 1000. This leads to surprising
|
| 345 |
+
results in many cases. See L</Year Value Interpretation> for details.
|
| 346 |
+
|
| 347 |
+
The C<time*_modern()> functions do not do this year munging and simply take the
|
| 348 |
+
year value as provided.
|
| 349 |
+
|
| 350 |
+
They perform range checking by default on the input C<$sec>, C<$min>, C<$hour>,
|
| 351 |
+
C<$mday>, and C<$mon> values and will croak (using C<Carp::croak()>) if given a
|
| 352 |
+
value outside the allowed ranges.
|
| 353 |
+
|
| 354 |
+
=head2 C<timelocal()> and C<timegm()>
|
| 355 |
+
|
| 356 |
+
This module exports two functions by default, C<timelocal()> and C<timegm()>.
|
| 357 |
+
|
| 358 |
+
They perform range checking by default on the input C<$sec>, C<$min>, C<$hour>,
|
| 359 |
+
C<$mday>, and C<$mon> values and will croak (using C<Carp::croak()>) if given a
|
| 360 |
+
value outside the allowed ranges.
|
| 361 |
+
|
| 362 |
+
B<Warning: The year value interpretation that these functions and their nocheck
|
| 363 |
+
variants use will almost certainly lead to bugs in your code, if not now, then
|
| 364 |
+
in the future. You are strongly discouraged from using these in new code, and
|
| 365 |
+
you should convert old code to using either the C<*_posix> or C<*_modern>
|
| 366 |
+
functions if possible.>
|
| 367 |
+
|
| 368 |
+
=head2 C<timelocal_nocheck()> and C<timegm_nocheck()>
|
| 369 |
+
|
| 370 |
+
If you are working with data you know to be valid, you can use the "nocheck"
|
| 371 |
+
variants, C<timelocal_nocheck()> and C<timegm_nocheck()>. These variants must
|
| 372 |
+
be explicitly imported.
|
| 373 |
+
|
| 374 |
+
If you supply data which is not valid (month 27, second 1,000) the results will
|
| 375 |
+
be unpredictable (so don't do that).
|
| 376 |
+
|
| 377 |
+
Note that my benchmarks show that this is just a 3% speed increase over the
|
| 378 |
+
checked versions, so unless calling C<Time::Local> is the hottest spot in your
|
| 379 |
+
application, using these nocheck variants is unlikely to have much impact on
|
| 380 |
+
your application.
|
| 381 |
+
|
| 382 |
+
=head2 Year Value Interpretation
|
| 383 |
+
|
| 384 |
+
B<This does not apply to the C<*_posix> or C<*_modern> functions. Use those
|
| 385 |
+
exports if you want to ensure consistent behavior as your code ages.>
|
| 386 |
+
|
| 387 |
+
Strictly speaking, the year should be specified in a form consistent with
|
| 388 |
+
C<localtime()>, i.e. the offset from 1900. In order to make the interpretation
|
| 389 |
+
of the year easier for humans, however, who are more accustomed to seeing years
|
| 390 |
+
as two-digit or four-digit values, the following conventions are followed:
|
| 391 |
+
|
| 392 |
+
=over 4
|
| 393 |
+
|
| 394 |
+
=item *
|
| 395 |
+
|
| 396 |
+
Years greater than 999 are interpreted as being the actual year, rather than
|
| 397 |
+
the offset from 1900. Thus, 1964 would indicate the year Martin Luther King won
|
| 398 |
+
the Nobel prize, not the year 3864.
|
| 399 |
+
|
| 400 |
+
=item *
|
| 401 |
+
|
| 402 |
+
Years in the range 100..999 are interpreted as offset from 1900, so that 112
|
| 403 |
+
indicates 2012. This rule also applies to years less than zero (but see note
|
| 404 |
+
below regarding date range).
|
| 405 |
+
|
| 406 |
+
=item *
|
| 407 |
+
|
| 408 |
+
Years in the range 0..99 are interpreted as shorthand for years in the rolling
|
| 409 |
+
"current century," defined as 50 years on either side of the current year.
|
| 410 |
+
Thus, today, in 1999, 0 would refer to 2000, and 45 to 2045, but 55 would refer
|
| 411 |
+
to 1955. Twenty years from now, 55 would instead refer to 2055. This is messy,
|
| 412 |
+
but matches the way people currently think about two digit dates. Whenever
|
| 413 |
+
possible, use an absolute four digit year instead.
|
| 414 |
+
|
| 415 |
+
=back
|
| 416 |
+
|
| 417 |
+
The scheme above allows interpretation of a wide range of dates, particularly
|
| 418 |
+
if 4-digit years are used. But it also means that the behavior of your code
|
| 419 |
+
changes as time passes, because the rolling "current century" changes each
|
| 420 |
+
year.
|
| 421 |
+
|
| 422 |
+
=head2 Limits of time_t
|
| 423 |
+
|
| 424 |
+
On perl versions older than 5.12.0, the range of dates that can be actually be
|
| 425 |
+
handled depends on the size of C<time_t> (usually a signed integer) on the
|
| 426 |
+
given platform. Currently, this is 32 bits for most systems, yielding an
|
| 427 |
+
approximate range from Dec 1901 to Jan 2038.
|
| 428 |
+
|
| 429 |
+
Both C<timelocal()> and C<timegm()> croak if given dates outside the supported
|
| 430 |
+
range.
|
| 431 |
+
|
| 432 |
+
As of version 5.12.0, perl has stopped using the time implementation of the
|
| 433 |
+
operating system it's running on. Instead, it has its own implementation of
|
| 434 |
+
those routines with a safe range of at least +/- 2**52 (about 142 million
|
| 435 |
+
years)
|
| 436 |
+
|
| 437 |
+
=head2 Ambiguous Local Times (DST)
|
| 438 |
+
|
| 439 |
+
Because of DST changes, there are many time zones where the same local time
|
| 440 |
+
occurs for two different GMT times on the same day. For example, in the
|
| 441 |
+
"Europe/Paris" time zone, the local time of 2001-10-28 02:30:00 can represent
|
| 442 |
+
either 2001-10-28 00:30:00 GMT, B<or> 2001-10-28 01:30:00 GMT.
|
| 443 |
+
|
| 444 |
+
When given an ambiguous local time, the timelocal() function will always return
|
| 445 |
+
the epoch for the I<earlier> of the two possible GMT times.
|
| 446 |
+
|
| 447 |
+
=head2 Non-Existent Local Times (DST)
|
| 448 |
+
|
| 449 |
+
When a DST change causes a locale clock to skip one hour forward, there will be
|
| 450 |
+
an hour's worth of local times that don't exist. Again, for the "Europe/Paris"
|
| 451 |
+
time zone, the local clock jumped from 2001-03-25 01:59:59 to 2001-03-25
|
| 452 |
+
03:00:00.
|
| 453 |
+
|
| 454 |
+
If the C<timelocal()> function is given a non-existent local time, it will
|
| 455 |
+
simply return an epoch value for the time one hour later.
|
| 456 |
+
|
| 457 |
+
=head2 Negative Epoch Values
|
| 458 |
+
|
| 459 |
+
On perl version 5.12.0 and newer, negative epoch values are fully supported.
|
| 460 |
+
|
| 461 |
+
On older versions of perl, negative epoch (C<time_t>) values, which are not
|
| 462 |
+
officially supported by the POSIX standards, are known not to work on some
|
| 463 |
+
systems. These include MacOS (pre-OSX) and Win32.
|
| 464 |
+
|
| 465 |
+
On systems which do support negative epoch values, this module should be able
|
| 466 |
+
to cope with dates before the start of the epoch, down the minimum value of
|
| 467 |
+
time_t for the system.
|
| 468 |
+
|
| 469 |
+
=head1 IMPLEMENTATION
|
| 470 |
+
|
| 471 |
+
These routines are quite efficient and yet are always guaranteed to agree with
|
| 472 |
+
C<localtime()> and C<gmtime()>. We manage this by caching the start times of
|
| 473 |
+
any months we've seen before. If we know the start time of the month, we can
|
| 474 |
+
always calculate any time within the month. The start times are calculated
|
| 475 |
+
using a mathematical formula. Unlike other algorithms that do multiple calls to
|
| 476 |
+
C<gmtime()>.
|
| 477 |
+
|
| 478 |
+
The C<timelocal()> function is implemented using the same cache. We just assume
|
| 479 |
+
that we're translating a GMT time, and then fudge it when we're done for the
|
| 480 |
+
timezone and daylight savings arguments. Note that the timezone is evaluated
|
| 481 |
+
for each date because countries occasionally change their official timezones.
|
| 482 |
+
Assuming that C<localtime()> corrects for these changes, this routine will also
|
| 483 |
+
be correct.
|
| 484 |
+
|
| 485 |
+
=head1 AUTHORS EMERITUS
|
| 486 |
+
|
| 487 |
+
This module is based on a Perl 4 library, timelocal.pl, that was included with
|
| 488 |
+
Perl 4.036, and was most likely written by Tom Christiansen.
|
| 489 |
+
|
| 490 |
+
The current version was written by Graham Barr.
|
| 491 |
+
|
| 492 |
+
=head1 BUGS
|
| 493 |
+
|
| 494 |
+
The whole scheme for interpreting two-digit years can be considered a bug.
|
| 495 |
+
|
| 496 |
+
Bugs may be submitted at L<https://github.com/houseabsolute/Time-Local/issues>.
|
| 497 |
+
|
| 498 |
+
There is a mailing list available for users of this distribution,
|
| 499 |
+
L<mailto:datetime@perl.org>.
|
| 500 |
+
|
| 501 |
+
=head1 SOURCE
|
| 502 |
+
|
| 503 |
+
The source code repository for Time-Local can be found at L<https://github.com/houseabsolute/Time-Local>.
|
| 504 |
+
|
| 505 |
+
=head1 AUTHOR
|
| 506 |
+
|
| 507 |
+
Dave Rolsky <autarch@urth.org>
|
| 508 |
+
|
| 509 |
+
=head1 CONTRIBUTORS
|
| 510 |
+
|
| 511 |
+
=for stopwords Florian Ragwitz Gregory Oschwald J. Nick Koston Tom Wyant Unknown
|
| 512 |
+
|
| 513 |
+
=over 4
|
| 514 |
+
|
| 515 |
+
=item *
|
| 516 |
+
|
| 517 |
+
Florian Ragwitz <rafl@debian.org>
|
| 518 |
+
|
| 519 |
+
=item *
|
| 520 |
+
|
| 521 |
+
Gregory Oschwald <oschwald@gmail.com>
|
| 522 |
+
|
| 523 |
+
=item *
|
| 524 |
+
|
| 525 |
+
J. Nick Koston <nick@cpanel.net>
|
| 526 |
+
|
| 527 |
+
=item *
|
| 528 |
+
|
| 529 |
+
Tom Wyant <wyant@cpan.org>
|
| 530 |
+
|
| 531 |
+
=item *
|
| 532 |
+
|
| 533 |
+
Unknown <unknown@example.com>
|
| 534 |
+
|
| 535 |
+
=back
|
| 536 |
+
|
| 537 |
+
=head1 COPYRIGHT AND LICENSE
|
| 538 |
+
|
| 539 |
+
This software is copyright (c) 1997 - 2023 by Graham Barr & Dave Rolsky.
|
| 540 |
+
|
| 541 |
+
This is free software; you can redistribute it and/or modify it under
|
| 542 |
+
the same terms as the Perl 5 programming language system itself.
|
| 543 |
+
|
| 544 |
+
The full text of the license can be found in the
|
| 545 |
+
F<LICENSE> file included with this distribution.
|
| 546 |
+
|
| 547 |
+
=cut
|
git/usr/share/perl5/core_perl/Time/gmtime.pm
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Time::gmtime 1.05;
|
| 2 |
+
use v5.38;
|
| 3 |
+
|
| 4 |
+
use parent 'Time::tm';
|
| 5 |
+
|
| 6 |
+
our ( $tm_sec, $tm_min, $tm_hour, $tm_mday,
|
| 7 |
+
$tm_mon, $tm_year, $tm_wday, $tm_yday,
|
| 8 |
+
$tm_isdst,
|
| 9 |
+
);
|
| 10 |
+
|
| 11 |
+
use Exporter 'import';
|
| 12 |
+
our @EXPORT = qw(gmtime gmctime);
|
| 13 |
+
our @EXPORT_OK = qw(
|
| 14 |
+
$tm_sec $tm_min $tm_hour $tm_mday
|
| 15 |
+
$tm_mon $tm_year $tm_wday $tm_yday
|
| 16 |
+
$tm_isdst
|
| 17 |
+
);
|
| 18 |
+
our %EXPORT_TAGS = ( FIELDS => [ @EXPORT_OK, @EXPORT ] );
|
| 19 |
+
|
| 20 |
+
sub populate {
|
| 21 |
+
return unless @_;
|
| 22 |
+
my $tmob = Time::tm->new();
|
| 23 |
+
@$tmob = (
|
| 24 |
+
$tm_sec, $tm_min, $tm_hour, $tm_mday,
|
| 25 |
+
$tm_mon, $tm_year, $tm_wday, $tm_yday,
|
| 26 |
+
$tm_isdst )
|
| 27 |
+
= @_;
|
| 28 |
+
return $tmob;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
sub gmtime :prototype(;$) { populate CORE::gmtime(@_ ? shift : time) }
|
| 32 |
+
sub gmctime :prototype(;$) { scalar CORE::gmtime(@_ ? shift : time) }
|
| 33 |
+
|
| 34 |
+
__END__
|
| 35 |
+
|
| 36 |
+
=head1 NAME
|
| 37 |
+
|
| 38 |
+
Time::gmtime - by-name interface to Perl's built-in gmtime() function
|
| 39 |
+
|
| 40 |
+
=head1 SYNOPSIS
|
| 41 |
+
|
| 42 |
+
use Time::gmtime;
|
| 43 |
+
$gm = gmtime();
|
| 44 |
+
printf "The day in Greenwich is %s\n",
|
| 45 |
+
(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $gm->wday() ];
|
| 46 |
+
|
| 47 |
+
use Time::gmtime qw(:FIELDS);
|
| 48 |
+
gmtime();
|
| 49 |
+
printf "The day in Greenwich is %s\n",
|
| 50 |
+
(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $tm_wday ];
|
| 51 |
+
|
| 52 |
+
$now = gmctime();
|
| 53 |
+
|
| 54 |
+
use Time::gmtime;
|
| 55 |
+
use File::stat;
|
| 56 |
+
$date_string = gmctime(stat($file)->mtime);
|
| 57 |
+
|
| 58 |
+
=head1 DESCRIPTION
|
| 59 |
+
|
| 60 |
+
This module's default exports override the core gmtime() function,
|
| 61 |
+
replacing it with a version that returns "Time::tm" objects.
|
| 62 |
+
This object has methods that return the similarly named structure field
|
| 63 |
+
name from the C's tm structure from F<time.h>; namely sec, min, hour,
|
| 64 |
+
mday, mon, year, wday, yday, and isdst.
|
| 65 |
+
|
| 66 |
+
You may also import all the structure fields directly into your namespace
|
| 67 |
+
as regular variables using the :FIELDS import tag. (Note that this
|
| 68 |
+
still overrides your core functions.) Access these fields as variables
|
| 69 |
+
named with a preceding C<tm_> in front their method names. Thus,
|
| 70 |
+
C<$tm_obj-E<gt>mday()> corresponds to $tm_mday if you import the fields.
|
| 71 |
+
|
| 72 |
+
The gmctime() function provides a way of getting at the
|
| 73 |
+
scalar sense of the original CORE::gmtime() function.
|
| 74 |
+
|
| 75 |
+
To access this functionality without the core overrides,
|
| 76 |
+
pass the C<use> an empty import list, and then access
|
| 77 |
+
function functions with their full qualified names.
|
| 78 |
+
On the other hand, the built-ins are still available
|
| 79 |
+
via the C<CORE::> pseudo-package.
|
| 80 |
+
|
| 81 |
+
=head1 NOTE
|
| 82 |
+
|
| 83 |
+
While this class is currently implemented using the Class::Struct
|
| 84 |
+
module to build a struct-like class, you shouldn't rely upon this.
|
| 85 |
+
|
| 86 |
+
=head1 AUTHOR
|
| 87 |
+
|
| 88 |
+
Tom Christiansen
|
git/usr/share/perl5/core_perl/Time/localtime.pm
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Time::localtime 1.04;
|
| 2 |
+
use v5.38;
|
| 3 |
+
|
| 4 |
+
use parent 'Time::tm';
|
| 5 |
+
|
| 6 |
+
our (
|
| 7 |
+
$tm_sec, $tm_min, $tm_hour, $tm_mday,
|
| 8 |
+
$tm_mon, $tm_year, $tm_wday, $tm_yday,
|
| 9 |
+
$tm_isdst
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
use Exporter 'import';
|
| 13 |
+
our @EXPORT = qw(localtime ctime);
|
| 14 |
+
our @EXPORT_OK = qw(
|
| 15 |
+
$tm_sec $tm_min $tm_hour $tm_mday
|
| 16 |
+
$tm_mon $tm_year $tm_wday $tm_yday
|
| 17 |
+
$tm_isdst
|
| 18 |
+
);
|
| 19 |
+
our %EXPORT_TAGS = ( FIELDS => [ @EXPORT_OK, @EXPORT ] );
|
| 20 |
+
|
| 21 |
+
sub populate {
|
| 22 |
+
return unless @_;
|
| 23 |
+
my $tmob = Time::tm->new();
|
| 24 |
+
@$tmob = (
|
| 25 |
+
$tm_sec, $tm_min, $tm_hour, $tm_mday,
|
| 26 |
+
$tm_mon, $tm_year, $tm_wday, $tm_yday,
|
| 27 |
+
$tm_isdst )
|
| 28 |
+
= @_;
|
| 29 |
+
return $tmob;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
sub localtime :prototype(;$) { populate CORE::localtime(@_ ? shift : time) }
|
| 33 |
+
sub ctime :prototype(;$) { scalar CORE::localtime(@_ ? shift : time) }
|
| 34 |
+
|
| 35 |
+
__END__
|
| 36 |
+
|
| 37 |
+
=head1 NAME
|
| 38 |
+
|
| 39 |
+
Time::localtime - by-name interface to Perl's built-in localtime() function
|
| 40 |
+
|
| 41 |
+
=head1 SYNOPSIS
|
| 42 |
+
|
| 43 |
+
use Time::localtime;
|
| 44 |
+
printf "Year is %d\n", localtime->year() + 1900;
|
| 45 |
+
|
| 46 |
+
$now = ctime();
|
| 47 |
+
|
| 48 |
+
use Time::localtime;
|
| 49 |
+
use File::stat;
|
| 50 |
+
$date_string = ctime(stat($file)->mtime);
|
| 51 |
+
|
| 52 |
+
=head1 DESCRIPTION
|
| 53 |
+
|
| 54 |
+
This module's default exports override the core localtime() function,
|
| 55 |
+
replacing it with a version that returns "Time::tm" objects.
|
| 56 |
+
This object has methods that return the similarly named structure field
|
| 57 |
+
name from the C's tm structure from F<time.h>; namely sec, min, hour,
|
| 58 |
+
mday, mon, year, wday, yday, and isdst.
|
| 59 |
+
|
| 60 |
+
You may also import all the structure fields directly into your namespace
|
| 61 |
+
as regular variables using the :FIELDS import tag. (Note that this still
|
| 62 |
+
overrides your core functions.) Access these fields as
|
| 63 |
+
variables named with a preceding C<tm_> in front their method names.
|
| 64 |
+
Thus, C<$tm_obj-E<gt>mday()> corresponds to $tm_mday if you import
|
| 65 |
+
the fields.
|
| 66 |
+
|
| 67 |
+
The ctime() function provides a way of getting at the
|
| 68 |
+
scalar sense of the original CORE::localtime() function.
|
| 69 |
+
|
| 70 |
+
To access this functionality without the core overrides,
|
| 71 |
+
pass the C<use> an empty import list, and then access
|
| 72 |
+
function functions with their full qualified names.
|
| 73 |
+
On the other hand, the built-ins are still available
|
| 74 |
+
via the C<CORE::> pseudo-package.
|
| 75 |
+
|
| 76 |
+
=head1 NOTE
|
| 77 |
+
|
| 78 |
+
While this class is currently implemented using the Class::Struct
|
| 79 |
+
module to build a struct-like class, you shouldn't rely upon this.
|
| 80 |
+
|
| 81 |
+
=head1 AUTHOR
|
| 82 |
+
|
| 83 |
+
Tom Christiansen
|
git/usr/share/perl5/core_perl/Time/tm.pm
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package Time::tm 1.01;
|
| 2 |
+
use v5.38;
|
| 3 |
+
|
| 4 |
+
use Class::Struct qw(struct);
|
| 5 |
+
struct('Time::tm' => [
|
| 6 |
+
map { $_ => '$' } qw{ sec min hour mday mon year wday yday isdst }
|
| 7 |
+
]);
|
| 8 |
+
|
| 9 |
+
__END__
|
| 10 |
+
|
| 11 |
+
=head1 NAME
|
| 12 |
+
|
| 13 |
+
Time::tm - internal object used by Time::gmtime and Time::localtime
|
| 14 |
+
|
| 15 |
+
=head1 SYNOPSIS
|
| 16 |
+
|
| 17 |
+
Don't use this module directly.
|
| 18 |
+
|
| 19 |
+
=head1 DESCRIPTION
|
| 20 |
+
|
| 21 |
+
This module is used internally as a base class by Time::localtime And
|
| 22 |
+
Time::gmtime functions. It creates a Time::tm struct object which is
|
| 23 |
+
addressable just like's C's tm structure from F<time.h>; namely with sec,
|
| 24 |
+
min, hour, mday, mon, year, wday, yday, and isdst.
|
| 25 |
+
|
| 26 |
+
This class is an internal interface only.
|
| 27 |
+
|
| 28 |
+
=head1 AUTHOR
|
| 29 |
+
|
| 30 |
+
Tom Christiansen
|
git/usr/share/perl5/core_perl/unicore/Blocks.txt
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Blocks-16.0.0.txt
|
| 2 |
+
# Date: 2024-02-02
|
| 3 |
+
# © 2024 Unicode®, Inc.
|
| 4 |
+
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
|
| 5 |
+
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
|
| 6 |
+
#
|
| 7 |
+
# Unicode Character Database
|
| 8 |
+
# For documentation, see https://www.unicode.org/reports/tr44/
|
| 9 |
+
#
|
| 10 |
+
# Format:
|
| 11 |
+
# Start Code..End Code; Block Name
|
| 12 |
+
|
| 13 |
+
# ================================================
|
| 14 |
+
|
| 15 |
+
# Note: When comparing block names, casing, whitespace, hyphens,
|
| 16 |
+
# and underbars are ignored.
|
| 17 |
+
# For example, "Latin Extended-A" and "latin extended a" are equivalent.
|
| 18 |
+
# For more information on the comparison of property values,
|
| 19 |
+
# see UAX #44: https://www.unicode.org/reports/tr44/
|
| 20 |
+
#
|
| 21 |
+
# All block ranges start with a value where (cp MOD 16) = 0,
|
| 22 |
+
# and end with a value where (cp MOD 16) = 15. In other words,
|
| 23 |
+
# the last hexadecimal digit of the start of range is ...0
|
| 24 |
+
# and the last hexadecimal digit of the end of range is ...F.
|
| 25 |
+
# This constraint on block ranges guarantees that allocations
|
| 26 |
+
# are done in terms of whole columns, and that code chart display
|
| 27 |
+
# never involves splitting columns in the charts.
|
| 28 |
+
#
|
| 29 |
+
# All code points not explicitly listed for Block
|
| 30 |
+
# have the value No_Block.
|
| 31 |
+
|
| 32 |
+
# Property: Block
|
| 33 |
+
#
|
| 34 |
+
# @missing: 0000..10FFFF; No_Block
|
| 35 |
+
|
| 36 |
+
0000..007F; Basic Latin
|
| 37 |
+
0080..00FF; Latin-1 Supplement
|
| 38 |
+
0100..017F; Latin Extended-A
|
| 39 |
+
0180..024F; Latin Extended-B
|
| 40 |
+
0250..02AF; IPA Extensions
|
| 41 |
+
02B0..02FF; Spacing Modifier Letters
|
| 42 |
+
0300..036F; Combining Diacritical Marks
|
| 43 |
+
0370..03FF; Greek and Coptic
|
| 44 |
+
0400..04FF; Cyrillic
|
| 45 |
+
0500..052F; Cyrillic Supplement
|
| 46 |
+
0530..058F; Armenian
|
| 47 |
+
0590..05FF; Hebrew
|
| 48 |
+
0600..06FF; Arabic
|
| 49 |
+
0700..074F; Syriac
|
| 50 |
+
0750..077F; Arabic Supplement
|
| 51 |
+
0780..07BF; Thaana
|
| 52 |
+
07C0..07FF; NKo
|
| 53 |
+
0800..083F; Samaritan
|
| 54 |
+
0840..085F; Mandaic
|
| 55 |
+
0860..086F; Syriac Supplement
|
| 56 |
+
0870..089F; Arabic Extended-B
|
| 57 |
+
08A0..08FF; Arabic Extended-A
|
| 58 |
+
0900..097F; Devanagari
|
| 59 |
+
0980..09FF; Bengali
|
| 60 |
+
0A00..0A7F; Gurmukhi
|
| 61 |
+
0A80..0AFF; Gujarati
|
| 62 |
+
0B00..0B7F; Oriya
|
| 63 |
+
0B80..0BFF; Tamil
|
| 64 |
+
0C00..0C7F; Telugu
|
| 65 |
+
0C80..0CFF; Kannada
|
| 66 |
+
0D00..0D7F; Malayalam
|
| 67 |
+
0D80..0DFF; Sinhala
|
| 68 |
+
0E00..0E7F; Thai
|
| 69 |
+
0E80..0EFF; Lao
|
| 70 |
+
0F00..0FFF; Tibetan
|
| 71 |
+
1000..109F; Myanmar
|
| 72 |
+
10A0..10FF; Georgian
|
| 73 |
+
1100..11FF; Hangul Jamo
|
| 74 |
+
1200..137F; Ethiopic
|
| 75 |
+
1380..139F; Ethiopic Supplement
|
| 76 |
+
13A0..13FF; Cherokee
|
| 77 |
+
1400..167F; Unified Canadian Aboriginal Syllabics
|
| 78 |
+
1680..169F; Ogham
|
| 79 |
+
16A0..16FF; Runic
|
| 80 |
+
1700..171F; Tagalog
|
| 81 |
+
1720..173F; Hanunoo
|
| 82 |
+
1740..175F; Buhid
|
| 83 |
+
1760..177F; Tagbanwa
|
| 84 |
+
1780..17FF; Khmer
|
| 85 |
+
1800..18AF; Mongolian
|
| 86 |
+
18B0..18FF; Unified Canadian Aboriginal Syllabics Extended
|
| 87 |
+
1900..194F; Limbu
|
| 88 |
+
1950..197F; Tai Le
|
| 89 |
+
1980..19DF; New Tai Lue
|
| 90 |
+
19E0..19FF; Khmer Symbols
|
| 91 |
+
1A00..1A1F; Buginese
|
| 92 |
+
1A20..1AAF; Tai Tham
|
| 93 |
+
1AB0..1AFF; Combining Diacritical Marks Extended
|
| 94 |
+
1B00..1B7F; Balinese
|
| 95 |
+
1B80..1BBF; Sundanese
|
| 96 |
+
1BC0..1BFF; Batak
|
| 97 |
+
1C00..1C4F; Lepcha
|
| 98 |
+
1C50..1C7F; Ol Chiki
|
| 99 |
+
1C80..1C8F; Cyrillic Extended-C
|
| 100 |
+
1C90..1CBF; Georgian Extended
|
| 101 |
+
1CC0..1CCF; Sundanese Supplement
|
| 102 |
+
1CD0..1CFF; Vedic Extensions
|
| 103 |
+
1D00..1D7F; Phonetic Extensions
|
| 104 |
+
1D80..1DBF; Phonetic Extensions Supplement
|
| 105 |
+
1DC0..1DFF; Combining Diacritical Marks Supplement
|
| 106 |
+
1E00..1EFF; Latin Extended Additional
|
| 107 |
+
1F00..1FFF; Greek Extended
|
| 108 |
+
2000..206F; General Punctuation
|
| 109 |
+
2070..209F; Superscripts and Subscripts
|
| 110 |
+
20A0..20CF; Currency Symbols
|
| 111 |
+
20D0..20FF; Combining Diacritical Marks for Symbols
|
| 112 |
+
2100..214F; Letterlike Symbols
|
| 113 |
+
2150..218F; Number Forms
|
| 114 |
+
2190..21FF; Arrows
|
| 115 |
+
2200..22FF; Mathematical Operators
|
| 116 |
+
2300..23FF; Miscellaneous Technical
|
| 117 |
+
2400..243F; Control Pictures
|
| 118 |
+
2440..245F; Optical Character Recognition
|
| 119 |
+
2460..24FF; Enclosed Alphanumerics
|
| 120 |
+
2500..257F; Box Drawing
|
| 121 |
+
2580..259F; Block Elements
|
| 122 |
+
25A0..25FF; Geometric Shapes
|
| 123 |
+
2600..26FF; Miscellaneous Symbols
|
| 124 |
+
2700..27BF; Dingbats
|
| 125 |
+
27C0..27EF; Miscellaneous Mathematical Symbols-A
|
| 126 |
+
27F0..27FF; Supplemental Arrows-A
|
| 127 |
+
2800..28FF; Braille Patterns
|
| 128 |
+
2900..297F; Supplemental Arrows-B
|
| 129 |
+
2980..29FF; Miscellaneous Mathematical Symbols-B
|
| 130 |
+
2A00..2AFF; Supplemental Mathematical Operators
|
| 131 |
+
2B00..2BFF; Miscellaneous Symbols and Arrows
|
| 132 |
+
2C00..2C5F; Glagolitic
|
| 133 |
+
2C60..2C7F; Latin Extended-C
|
| 134 |
+
2C80..2CFF; Coptic
|
| 135 |
+
2D00..2D2F; Georgian Supplement
|
| 136 |
+
2D30..2D7F; Tifinagh
|
| 137 |
+
2D80..2DDF; Ethiopic Extended
|
| 138 |
+
2DE0..2DFF; Cyrillic Extended-A
|
| 139 |
+
2E00..2E7F; Supplemental Punctuation
|
| 140 |
+
2E80..2EFF; CJK Radicals Supplement
|
| 141 |
+
2F00..2FDF; Kangxi Radicals
|
| 142 |
+
2FF0..2FFF; Ideographic Description Characters
|
| 143 |
+
3000..303F; CJK Symbols and Punctuation
|
| 144 |
+
3040..309F; Hiragana
|
| 145 |
+
30A0..30FF; Katakana
|
| 146 |
+
3100..312F; Bopomofo
|
| 147 |
+
3130..318F; Hangul Compatibility Jamo
|
| 148 |
+
3190..319F; Kanbun
|
| 149 |
+
31A0..31BF; Bopomofo Extended
|
| 150 |
+
31C0..31EF; CJK Strokes
|
| 151 |
+
31F0..31FF; Katakana Phonetic Extensions
|
| 152 |
+
3200..32FF; Enclosed CJK Letters and Months
|
| 153 |
+
3300..33FF; CJK Compatibility
|
| 154 |
+
3400..4DBF; CJK Unified Ideographs Extension A
|
| 155 |
+
4DC0..4DFF; Yijing Hexagram Symbols
|
| 156 |
+
4E00..9FFF; CJK Unified Ideographs
|
| 157 |
+
A000..A48F; Yi Syllables
|
| 158 |
+
A490..A4CF; Yi Radicals
|
| 159 |
+
A4D0..A4FF; Lisu
|
| 160 |
+
A500..A63F; Vai
|
| 161 |
+
A640..A69F; Cyrillic Extended-B
|
| 162 |
+
A6A0..A6FF; Bamum
|
| 163 |
+
A700..A71F; Modifier Tone Letters
|
| 164 |
+
A720..A7FF; Latin Extended-D
|
| 165 |
+
A800..A82F; Syloti Nagri
|
| 166 |
+
A830..A83F; Common Indic Number Forms
|
| 167 |
+
A840..A87F; Phags-pa
|
| 168 |
+
A880..A8DF; Saurashtra
|
| 169 |
+
A8E0..A8FF; Devanagari Extended
|
| 170 |
+
A900..A92F; Kayah Li
|
| 171 |
+
A930..A95F; Rejang
|
| 172 |
+
A960..A97F; Hangul Jamo Extended-A
|
| 173 |
+
A980..A9DF; Javanese
|
| 174 |
+
A9E0..A9FF; Myanmar Extended-B
|
| 175 |
+
AA00..AA5F; Cham
|
| 176 |
+
AA60..AA7F; Myanmar Extended-A
|
| 177 |
+
AA80..AADF; Tai Viet
|
| 178 |
+
AAE0..AAFF; Meetei Mayek Extensions
|
| 179 |
+
AB00..AB2F; Ethiopic Extended-A
|
| 180 |
+
AB30..AB6F; Latin Extended-E
|
| 181 |
+
AB70..ABBF; Cherokee Supplement
|
| 182 |
+
ABC0..ABFF; Meetei Mayek
|
| 183 |
+
AC00..D7AF; Hangul Syllables
|
| 184 |
+
D7B0..D7FF; Hangul Jamo Extended-B
|
| 185 |
+
D800..DB7F; High Surrogates
|
| 186 |
+
DB80..DBFF; High Private Use Surrogates
|
| 187 |
+
DC00..DFFF; Low Surrogates
|
| 188 |
+
E000..F8FF; Private Use Area
|
| 189 |
+
F900..FAFF; CJK Compatibility Ideographs
|
| 190 |
+
FB00..FB4F; Alphabetic Presentation Forms
|
| 191 |
+
FB50..FDFF; Arabic Presentation Forms-A
|
| 192 |
+
FE00..FE0F; Variation Selectors
|
| 193 |
+
FE10..FE1F; Vertical Forms
|
| 194 |
+
FE20..FE2F; Combining Half Marks
|
| 195 |
+
FE30..FE4F; CJK Compatibility Forms
|
| 196 |
+
FE50..FE6F; Small Form Variants
|
| 197 |
+
FE70..FEFF; Arabic Presentation Forms-B
|
| 198 |
+
FF00..FFEF; Halfwidth and Fullwidth Forms
|
| 199 |
+
FFF0..FFFF; Specials
|
| 200 |
+
10000..1007F; Linear B Syllabary
|
| 201 |
+
10080..100FF; Linear B Ideograms
|
| 202 |
+
10100..1013F; Aegean Numbers
|
| 203 |
+
10140..1018F; Ancient Greek Numbers
|
| 204 |
+
10190..101CF; Ancient Symbols
|
| 205 |
+
101D0..101FF; Phaistos Disc
|
| 206 |
+
10280..1029F; Lycian
|
| 207 |
+
102A0..102DF; Carian
|
| 208 |
+
102E0..102FF; Coptic Epact Numbers
|
| 209 |
+
10300..1032F; Old Italic
|
| 210 |
+
10330..1034F; Gothic
|
| 211 |
+
10350..1037F; Old Permic
|
| 212 |
+
10380..1039F; Ugaritic
|
| 213 |
+
103A0..103DF; Old Persian
|
| 214 |
+
10400..1044F; Deseret
|
| 215 |
+
10450..1047F; Shavian
|
| 216 |
+
10480..104AF; Osmanya
|
| 217 |
+
104B0..104FF; Osage
|
| 218 |
+
10500..1052F; Elbasan
|
| 219 |
+
10530..1056F; Caucasian Albanian
|
| 220 |
+
10570..105BF; Vithkuqi
|
| 221 |
+
105C0..105FF; Todhri
|
| 222 |
+
10600..1077F; Linear A
|
| 223 |
+
10780..107BF; Latin Extended-F
|
| 224 |
+
10800..1083F; Cypriot Syllabary
|
| 225 |
+
10840..1085F; Imperial Aramaic
|
| 226 |
+
10860..1087F; Palmyrene
|
| 227 |
+
10880..108AF; Nabataean
|
| 228 |
+
108E0..108FF; Hatran
|
| 229 |
+
10900..1091F; Phoenician
|
| 230 |
+
10920..1093F; Lydian
|
| 231 |
+
10980..1099F; Meroitic Hieroglyphs
|
| 232 |
+
109A0..109FF; Meroitic Cursive
|
| 233 |
+
10A00..10A5F; Kharoshthi
|
| 234 |
+
10A60..10A7F; Old South Arabian
|
| 235 |
+
10A80..10A9F; Old North Arabian
|
| 236 |
+
10AC0..10AFF; Manichaean
|
| 237 |
+
10B00..10B3F; Avestan
|
| 238 |
+
10B40..10B5F; Inscriptional Parthian
|
| 239 |
+
10B60..10B7F; Inscriptional Pahlavi
|
| 240 |
+
10B80..10BAF; Psalter Pahlavi
|
| 241 |
+
10C00..10C4F; Old Turkic
|
| 242 |
+
10C80..10CFF; Old Hungarian
|
| 243 |
+
10D00..10D3F; Hanifi Rohingya
|
| 244 |
+
10D40..10D8F; Garay
|
| 245 |
+
10E60..10E7F; Rumi Numeral Symbols
|
| 246 |
+
10E80..10EBF; Yezidi
|
| 247 |
+
10EC0..10EFF; Arabic Extended-C
|
| 248 |
+
10F00..10F2F; Old Sogdian
|
| 249 |
+
10F30..10F6F; Sogdian
|
| 250 |
+
10F70..10FAF; Old Uyghur
|
| 251 |
+
10FB0..10FDF; Chorasmian
|
| 252 |
+
10FE0..10FFF; Elymaic
|
| 253 |
+
11000..1107F; Brahmi
|
| 254 |
+
11080..110CF; Kaithi
|
| 255 |
+
110D0..110FF; Sora Sompeng
|
| 256 |
+
11100..1114F; Chakma
|
| 257 |
+
11150..1117F; Mahajani
|
| 258 |
+
11180..111DF; Sharada
|
| 259 |
+
111E0..111FF; Sinhala Archaic Numbers
|
| 260 |
+
11200..1124F; Khojki
|
| 261 |
+
11280..112AF; Multani
|
| 262 |
+
112B0..112FF; Khudawadi
|
| 263 |
+
11300..1137F; Grantha
|
| 264 |
+
11380..113FF; Tulu-Tigalari
|
| 265 |
+
11400..1147F; Newa
|
| 266 |
+
11480..114DF; Tirhuta
|
| 267 |
+
11580..115FF; Siddham
|
| 268 |
+
11600..1165F; Modi
|
| 269 |
+
11660..1167F; Mongolian Supplement
|
| 270 |
+
11680..116CF; Takri
|
| 271 |
+
116D0..116FF; Myanmar Extended-C
|
| 272 |
+
11700..1174F; Ahom
|
| 273 |
+
11800..1184F; Dogra
|
| 274 |
+
118A0..118FF; Warang Citi
|
| 275 |
+
11900..1195F; Dives Akuru
|
| 276 |
+
119A0..119FF; Nandinagari
|
| 277 |
+
11A00..11A4F; Zanabazar Square
|
| 278 |
+
11A50..11AAF; Soyombo
|
| 279 |
+
11AB0..11ABF; Unified Canadian Aboriginal Syllabics Extended-A
|
| 280 |
+
11AC0..11AFF; Pau Cin Hau
|
| 281 |
+
11B00..11B5F; Devanagari Extended-A
|
| 282 |
+
11BC0..11BFF; Sunuwar
|
| 283 |
+
11C00..11C6F; Bhaiksuki
|
| 284 |
+
11C70..11CBF; Marchen
|
| 285 |
+
11D00..11D5F; Masaram Gondi
|
| 286 |
+
11D60..11DAF; Gunjala Gondi
|
| 287 |
+
11EE0..11EFF; Makasar
|
| 288 |
+
11F00..11F5F; Kawi
|
| 289 |
+
11FB0..11FBF; Lisu Supplement
|
| 290 |
+
11FC0..11FFF; Tamil Supplement
|
| 291 |
+
12000..123FF; Cuneiform
|
| 292 |
+
12400..1247F; Cuneiform Numbers and Punctuation
|
| 293 |
+
12480..1254F; Early Dynastic Cuneiform
|
| 294 |
+
12F90..12FFF; Cypro-Minoan
|
| 295 |
+
13000..1342F; Egyptian Hieroglyphs
|
| 296 |
+
13430..1345F; Egyptian Hieroglyph Format Controls
|
| 297 |
+
13460..143FF; Egyptian Hieroglyphs Extended-A
|
| 298 |
+
14400..1467F; Anatolian Hieroglyphs
|
| 299 |
+
16100..1613F; Gurung Khema
|
| 300 |
+
16800..16A3F; Bamum Supplement
|
| 301 |
+
16A40..16A6F; Mro
|
| 302 |
+
16A70..16ACF; Tangsa
|
| 303 |
+
16AD0..16AFF; Bassa Vah
|
| 304 |
+
16B00..16B8F; Pahawh Hmong
|
| 305 |
+
16D40..16D7F; Kirat Rai
|
| 306 |
+
16E40..16E9F; Medefaidrin
|
| 307 |
+
16F00..16F9F; Miao
|
| 308 |
+
16FE0..16FFF; Ideographic Symbols and Punctuation
|
| 309 |
+
17000..187FF; Tangut
|
| 310 |
+
18800..18AFF; Tangut Components
|
| 311 |
+
18B00..18CFF; Khitan Small Script
|
| 312 |
+
18D00..18D7F; Tangut Supplement
|
| 313 |
+
1AFF0..1AFFF; Kana Extended-B
|
| 314 |
+
1B000..1B0FF; Kana Supplement
|
| 315 |
+
1B100..1B12F; Kana Extended-A
|
| 316 |
+
1B130..1B16F; Small Kana Extension
|
| 317 |
+
1B170..1B2FF; Nushu
|
| 318 |
+
1BC00..1BC9F; Duployan
|
| 319 |
+
1BCA0..1BCAF; Shorthand Format Controls
|
| 320 |
+
1CC00..1CEBF; Symbols for Legacy Computing Supplement
|
| 321 |
+
1CF00..1CFCF; Znamenny Musical Notation
|
| 322 |
+
1D000..1D0FF; Byzantine Musical Symbols
|
| 323 |
+
1D100..1D1FF; Musical Symbols
|
| 324 |
+
1D200..1D24F; Ancient Greek Musical Notation
|
| 325 |
+
1D2C0..1D2DF; Kaktovik Numerals
|
| 326 |
+
1D2E0..1D2FF; Mayan Numerals
|
| 327 |
+
1D300..1D35F; Tai Xuan Jing Symbols
|
| 328 |
+
1D360..1D37F; Counting Rod Numerals
|
| 329 |
+
1D400..1D7FF; Mathematical Alphanumeric Symbols
|
| 330 |
+
1D800..1DAAF; Sutton SignWriting
|
| 331 |
+
1DF00..1DFFF; Latin Extended-G
|
| 332 |
+
1E000..1E02F; Glagolitic Supplement
|
| 333 |
+
1E030..1E08F; Cyrillic Extended-D
|
| 334 |
+
1E100..1E14F; Nyiakeng Puachue Hmong
|
| 335 |
+
1E290..1E2BF; Toto
|
| 336 |
+
1E2C0..1E2FF; Wancho
|
| 337 |
+
1E4D0..1E4FF; Nag Mundari
|
| 338 |
+
1E5D0..1E5FF; Ol Onal
|
| 339 |
+
1E7E0..1E7FF; Ethiopic Extended-B
|
| 340 |
+
1E800..1E8DF; Mende Kikakui
|
| 341 |
+
1E900..1E95F; Adlam
|
| 342 |
+
1EC70..1ECBF; Indic Siyaq Numbers
|
| 343 |
+
1ED00..1ED4F; Ottoman Siyaq Numbers
|
| 344 |
+
1EE00..1EEFF; Arabic Mathematical Alphabetic Symbols
|
| 345 |
+
1F000..1F02F; Mahjong Tiles
|
| 346 |
+
1F030..1F09F; Domino Tiles
|
| 347 |
+
1F0A0..1F0FF; Playing Cards
|
| 348 |
+
1F100..1F1FF; Enclosed Alphanumeric Supplement
|
| 349 |
+
1F200..1F2FF; Enclosed Ideographic Supplement
|
| 350 |
+
1F300..1F5FF; Miscellaneous Symbols and Pictographs
|
| 351 |
+
1F600..1F64F; Emoticons
|
| 352 |
+
1F650..1F67F; Ornamental Dingbats
|
| 353 |
+
1F680..1F6FF; Transport and Map Symbols
|
| 354 |
+
1F700..1F77F; Alchemical Symbols
|
| 355 |
+
1F780..1F7FF; Geometric Shapes Extended
|
| 356 |
+
1F800..1F8FF; Supplemental Arrows-C
|
| 357 |
+
1F900..1F9FF; Supplemental Symbols and Pictographs
|
| 358 |
+
1FA00..1FA6F; Chess Symbols
|
| 359 |
+
1FA70..1FAFF; Symbols and Pictographs Extended-A
|
| 360 |
+
1FB00..1FBFF; Symbols for Legacy Computing
|
| 361 |
+
20000..2A6DF; CJK Unified Ideographs Extension B
|
| 362 |
+
2A700..2B73F; CJK Unified Ideographs Extension C
|
| 363 |
+
2B740..2B81F; CJK Unified Ideographs Extension D
|
| 364 |
+
2B820..2CEAF; CJK Unified Ideographs Extension E
|
| 365 |
+
2CEB0..2EBEF; CJK Unified Ideographs Extension F
|
| 366 |
+
2EBF0..2EE5F; CJK Unified Ideographs Extension I
|
| 367 |
+
2F800..2FA1F; CJK Compatibility Ideographs Supplement
|
| 368 |
+
30000..3134F; CJK Unified Ideographs Extension G
|
| 369 |
+
31350..323AF; CJK Unified Ideographs Extension H
|
| 370 |
+
E0000..E007F; Tags
|
| 371 |
+
E0100..E01EF; Variation Selectors Supplement
|
| 372 |
+
F0000..FFFFF; Supplementary Private Use Area-A
|
| 373 |
+
100000..10FFFF; Supplementary Private Use Area-B
|
| 374 |
+
|
| 375 |
+
# EOF
|