mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Use underscores for number literals with five or more digits
This commit is contained in:
parent
22331db571
commit
4ce5d44dbb
14 changed files with 159 additions and 159 deletions
192
etc/c/curl.d
192
etc/c/curl.d
|
@ -167,7 +167,7 @@ alias curl_progress_callback = int function(void *clientp, double dltotal, doubl
|
||||||
time for those who feel adventurous. The practical minimum is about
|
time for those who feel adventurous. The practical minimum is about
|
||||||
400 bytes since libcurl uses a buffer of this size as a scratch area
|
400 bytes since libcurl uses a buffer of this size as a scratch area
|
||||||
(unrelated to network send operations). */
|
(unrelated to network send operations). */
|
||||||
enum CURL_MAX_WRITE_SIZE = 16384;
|
enum CURL_MAX_WRITE_SIZE = 16_384;
|
||||||
|
|
||||||
/** The only reason to have a max limit for this is to avoid the risk of a bad
|
/** The only reason to have a max limit for this is to avoid the risk of a bad
|
||||||
server feeding libcurl with a never-ending header that will cause reallocs
|
server feeding libcurl with a never-ending header that will cause reallocs
|
||||||
|
@ -555,7 +555,7 @@ enum CurlAuth : long {
|
||||||
gssnegotiate = 4, /** GSS-Negotiate */
|
gssnegotiate = 4, /** GSS-Negotiate */
|
||||||
ntlm = 8, /** NTLM */
|
ntlm = 8, /** NTLM */
|
||||||
digest_ie = 16, /** Digest with IE flavour */
|
digest_ie = 16, /** Digest with IE flavour */
|
||||||
only = 2147483648, /** used together with a single other
|
only = 2_147_483_648, /** used together with a single other
|
||||||
type to force no auth or just that
|
type to force no auth or just that
|
||||||
single type */
|
single type */
|
||||||
any = -17, /* (~CURLAUTH_DIGEST_IE) */ /** all fine types set */
|
any = -17, /* (~CURLAUTH_DIGEST_IE) */ /** all fine types set */
|
||||||
|
@ -691,18 +691,18 @@ enum CurlProto {
|
||||||
tftp = 2048, ///
|
tftp = 2048, ///
|
||||||
imap = 4096, ///
|
imap = 4096, ///
|
||||||
imaps = 8192, ///
|
imaps = 8192, ///
|
||||||
pop3 = 16384, ///
|
pop3 = 16_384, ///
|
||||||
pop3s = 32768, ///
|
pop3s = 32_768, ///
|
||||||
smtp = 65536, ///
|
smtp = 65_536, ///
|
||||||
smtps = 131072, ///
|
smtps = 131_072, ///
|
||||||
rtsp = 262144, ///
|
rtsp = 262_144, ///
|
||||||
rtmp = 524288, ///
|
rtmp = 524_288, ///
|
||||||
rtmpt = 1048576, ///
|
rtmpt = 1_048_576, ///
|
||||||
rtmpe = 2097152, ///
|
rtmpe = 2_097_152, ///
|
||||||
rtmpte = 4194304, ///
|
rtmpte = 4_194_304, ///
|
||||||
rtmps = 8388608, ///
|
rtmps = 8_388_608, ///
|
||||||
rtmpts = 16777216, ///
|
rtmpts = 16_777_216, ///
|
||||||
gopher = 33554432, ///
|
gopher = 33_554_432, ///
|
||||||
all = -1 /** enable everything */
|
all = -1 /** enable everything */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,12 +710,12 @@ enum CurlProto {
|
||||||
but 32 */
|
but 32 */
|
||||||
enum CURLOPTTYPE_LONG = 0;
|
enum CURLOPTTYPE_LONG = 0;
|
||||||
/// ditto
|
/// ditto
|
||||||
enum CURLOPTTYPE_OBJECTPOINT = 10000;
|
enum CURLOPTTYPE_OBJECTPOINT = 10_000;
|
||||||
/// ditto
|
/// ditto
|
||||||
enum CURLOPTTYPE_FUNCTIONPOINT = 20000;
|
enum CURLOPTTYPE_FUNCTIONPOINT = 20_000;
|
||||||
|
|
||||||
/// ditto
|
/// ditto
|
||||||
enum CURLOPTTYPE_OFF_T = 30000;
|
enum CURLOPTTYPE_OFF_T = 30_000;
|
||||||
/** name is uppercase CURLOPT_$(LT)name$(GT),
|
/** name is uppercase CURLOPT_$(LT)name$(GT),
|
||||||
type is one of the defined CURLOPTTYPE_$(LT)type$(GT)
|
type is one of the defined CURLOPTTYPE_$(LT)type$(GT)
|
||||||
number is unique identifier */
|
number is unique identifier */
|
||||||
|
@ -733,13 +733,13 @@ alias OFF_T = CURLOPTTYPE_OFF_T;
|
||||||
///
|
///
|
||||||
enum CurlOption {
|
enum CurlOption {
|
||||||
/** This is the FILE * or void * the regular output should be written to. */
|
/** This is the FILE * or void * the regular output should be written to. */
|
||||||
file = 10001,
|
file = 10_001,
|
||||||
/** The full URL to get/put */
|
/** The full URL to get/put */
|
||||||
url,
|
url,
|
||||||
/** Port number to connect to, if other than default. */
|
/** Port number to connect to, if other than default. */
|
||||||
port = 3,
|
port = 3,
|
||||||
/** Name of proxy to use. */
|
/** Name of proxy to use. */
|
||||||
proxy = 10004,
|
proxy = 10_004,
|
||||||
/** "name:password" to use when fetching. */
|
/** "name:password" to use when fetching. */
|
||||||
userpwd,
|
userpwd,
|
||||||
/** "name:password" to use with proxy. */
|
/** "name:password" to use with proxy. */
|
||||||
|
@ -749,13 +749,13 @@ enum CurlOption {
|
||||||
/** not used */
|
/** not used */
|
||||||
|
|
||||||
/** Specified file stream to upload from (use as input): */
|
/** Specified file stream to upload from (use as input): */
|
||||||
infile = 10009,
|
infile = 10_009,
|
||||||
/** Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
|
/** Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
|
||||||
* bytes big. If this is not used, error messages go to stderr instead: */
|
* bytes big. If this is not used, error messages go to stderr instead: */
|
||||||
errorbuffer,
|
errorbuffer,
|
||||||
/** Function that will be called to store the output (instead of fwrite). The
|
/** Function that will be called to store the output (instead of fwrite). The
|
||||||
* parameters will use fwrite() syntax, make sure to follow them. */
|
* parameters will use fwrite() syntax, make sure to follow them. */
|
||||||
writefunction = 20011,
|
writefunction = 20_011,
|
||||||
/** Function that will be called to read the input (instead of fread). The
|
/** Function that will be called to read the input (instead of fread). The
|
||||||
* parameters will use fread() syntax, make sure to follow them. */
|
* parameters will use fread() syntax, make sure to follow them. */
|
||||||
readfunction,
|
readfunction,
|
||||||
|
@ -772,7 +772,7 @@ enum CurlOption {
|
||||||
*/
|
*/
|
||||||
infilesize,
|
infilesize,
|
||||||
/** POST static input fields. */
|
/** POST static input fields. */
|
||||||
postfields = 10015,
|
postfields = 10_015,
|
||||||
/** Set the referrer page (needed by some CGIs) */
|
/** Set the referrer page (needed by some CGIs) */
|
||||||
referer,
|
referer,
|
||||||
/** Set the FTP PORT string (interface name, named or numerical IP address)
|
/** Set the FTP PORT string (interface name, named or numerical IP address)
|
||||||
|
@ -798,7 +798,7 @@ enum CurlOption {
|
||||||
*/
|
*/
|
||||||
resume_from,
|
resume_from,
|
||||||
/** Set cookie in request: */
|
/** Set cookie in request: */
|
||||||
cookie = 10022,
|
cookie = 10_022,
|
||||||
/** This points to a linked list of headers, struct curl_slist kind */
|
/** This points to a linked list of headers, struct curl_slist kind */
|
||||||
httpheader,
|
httpheader,
|
||||||
/** This points to a linked list of post entries, struct curl_httppost */
|
/** This points to a linked list of post entries, struct curl_httppost */
|
||||||
|
@ -810,13 +810,13 @@ enum CurlOption {
|
||||||
/** send TYPE parameter? */
|
/** send TYPE parameter? */
|
||||||
crlf = 27,
|
crlf = 27,
|
||||||
/** send linked-list of QUOTE commands */
|
/** send linked-list of QUOTE commands */
|
||||||
quote = 10028,
|
quote = 10_028,
|
||||||
/** send FILE * or void * to store headers to, if you use a callback it
|
/** send FILE * or void * to store headers to, if you use a callback it
|
||||||
is simply passed to the callback unmodified */
|
is simply passed to the callback unmodified */
|
||||||
writeheader,
|
writeheader,
|
||||||
/** point to a file to read the initial cookies from, also enables
|
/** point to a file to read the initial cookies from, also enables
|
||||||
"cookie awareness" */
|
"cookie awareness" */
|
||||||
cookiefile = 10031,
|
cookiefile = 10_031,
|
||||||
/** What version to specifically try to use.
|
/** What version to specifically try to use.
|
||||||
See CURL_SSLVERSION defines below. */
|
See CURL_SSLVERSION defines below. */
|
||||||
sslversion = 32,
|
sslversion = 32,
|
||||||
|
@ -831,13 +831,13 @@ enum CurlOption {
|
||||||
HTTP: DELETE, TRACE and others
|
HTTP: DELETE, TRACE and others
|
||||||
FTP: to use a different list command
|
FTP: to use a different list command
|
||||||
*/
|
*/
|
||||||
customrequest = 10036,
|
customrequest = 10_036,
|
||||||
/** HTTP request, for odd commands like DELETE, TRACE and others */
|
/** HTTP request, for odd commands like DELETE, TRACE and others */
|
||||||
stderr,
|
stderr,
|
||||||
/* 38 is not used */
|
/* 38 is not used */
|
||||||
|
|
||||||
/** send linked-list of post-transfer QUOTE commands */
|
/** send linked-list of post-transfer QUOTE commands */
|
||||||
postquote = 10039,
|
postquote = 10_039,
|
||||||
/** Pass a pointer to string of the output using full variable-replacement
|
/** Pass a pointer to string of the output using full variable-replacement
|
||||||
as described elsewhere. */
|
as described elsewhere. */
|
||||||
writeinfo,
|
writeinfo,
|
||||||
|
@ -861,9 +861,9 @@ enum CurlOption {
|
||||||
/** Function that will be called instead of the internal progress display
|
/** Function that will be called instead of the internal progress display
|
||||||
* function. This function should be defined as the curl_progress_callback
|
* function. This function should be defined as the curl_progress_callback
|
||||||
* prototype defines. */
|
* prototype defines. */
|
||||||
progressfunction = 20056,
|
progressfunction = 20_056,
|
||||||
/** Data passed to the progress callback */
|
/** Data passed to the progress callback */
|
||||||
progressdata = 10057,
|
progressdata = 10_057,
|
||||||
/** We want the referrer field set automatically when following locations */
|
/** We want the referrer field set automatically when following locations */
|
||||||
autoreferer = 58,
|
autoreferer = 58,
|
||||||
/** Port of the proxy, can be set in the proxy string as well with:
|
/** Port of the proxy, can be set in the proxy string as well with:
|
||||||
|
@ -874,7 +874,7 @@ enum CurlOption {
|
||||||
/** tunnel non-http operations through a HTTP proxy */
|
/** tunnel non-http operations through a HTTP proxy */
|
||||||
httpproxytunnel,
|
httpproxytunnel,
|
||||||
/** Set the interface string to use as outgoing network interface */
|
/** Set the interface string to use as outgoing network interface */
|
||||||
intrface = 10062,
|
intrface = 10_062,
|
||||||
/** Set the krb4/5 security level, this also enables krb4/5 awareness. This
|
/** Set the krb4/5 security level, this also enables krb4/5 awareness. This
|
||||||
* is a string, 'clear', 'safe', 'confidential' or 'private'. If the string
|
* is a string, 'clear', 'safe', 'confidential' or 'private'. If the string
|
||||||
* is set but doesn't match one of these, 'private' will be used. */
|
* is set but doesn't match one of these, 'private' will be used. */
|
||||||
|
@ -883,7 +883,7 @@ enum CurlOption {
|
||||||
ssl_verifypeer = 64,
|
ssl_verifypeer = 64,
|
||||||
/** The CApath or CAfile used to validate the peer certificate
|
/** The CApath or CAfile used to validate the peer certificate
|
||||||
this option is used only if SSL_VERIFYPEER is true */
|
this option is used only if SSL_VERIFYPEER is true */
|
||||||
cainfo = 10065,
|
cainfo = 10_065,
|
||||||
/* 66 = OBSOLETE */
|
/* 66 = OBSOLETE */
|
||||||
/* 67 = OBSOLETE */
|
/* 67 = OBSOLETE */
|
||||||
|
|
||||||
|
@ -893,7 +893,7 @@ enum CurlOption {
|
||||||
possible)! Pass a zero to shut it off. */
|
possible)! Pass a zero to shut it off. */
|
||||||
filetime,
|
filetime,
|
||||||
/** This points to a linked list of telnet options */
|
/** This points to a linked list of telnet options */
|
||||||
telnetoptions = 10070,
|
telnetoptions = 10_070,
|
||||||
/** Max amount of cached alive connections */
|
/** Max amount of cached alive connections */
|
||||||
maxconnects = 71,
|
maxconnects = 71,
|
||||||
/** What policy to use when closing connections when the cache is filled
|
/** What policy to use when closing connections when the cache is filled
|
||||||
|
@ -911,7 +911,7 @@ enum CurlOption {
|
||||||
forbid_reuse,
|
forbid_reuse,
|
||||||
/** Set to a file name that contains random data for libcurl to use to
|
/** Set to a file name that contains random data for libcurl to use to
|
||||||
seed the random engine when doing SSL connects. */
|
seed the random engine when doing SSL connects. */
|
||||||
random_file = 10076,
|
random_file = 10_076,
|
||||||
/** Set to the Entropy Gathering Daemon socket pathname */
|
/** Set to the Entropy Gathering Daemon socket pathname */
|
||||||
egdsocket,
|
egdsocket,
|
||||||
/** Time-out connect operations after this amount of seconds, if connects
|
/** Time-out connect operations after this amount of seconds, if connects
|
||||||
|
@ -920,7 +920,7 @@ enum CurlOption {
|
||||||
connecttimeout = 78,
|
connecttimeout = 78,
|
||||||
/** Function that will be called to store headers (instead of fwrite). The
|
/** Function that will be called to store headers (instead of fwrite). The
|
||||||
* parameters will use fwrite() syntax, make sure to follow them. */
|
* parameters will use fwrite() syntax, make sure to follow them. */
|
||||||
headerfunction = 20079,
|
headerfunction = 20_079,
|
||||||
/** Set this to force the HTTP request to get back to GET. Only really usable
|
/** Set this to force the HTTP request to get back to GET. Only really usable
|
||||||
if POST, PUT or a custom request have been used first.
|
if POST, PUT or a custom request have been used first.
|
||||||
*/
|
*/
|
||||||
|
@ -931,7 +931,7 @@ enum CurlOption {
|
||||||
ssl_verifyhost,
|
ssl_verifyhost,
|
||||||
/** Specify which file name to write all known cookies in after completed
|
/** Specify which file name to write all known cookies in after completed
|
||||||
operation. Set file name to "-" (dash) to make it go to stdout. */
|
operation. Set file name to "-" (dash) to make it go to stdout. */
|
||||||
cookiejar = 10082,
|
cookiejar = 10_082,
|
||||||
/** Specify which SSL ciphers to use */
|
/** Specify which SSL ciphers to use */
|
||||||
ssl_cipher_list,
|
ssl_cipher_list,
|
||||||
/** Specify which HTTP version to use! This must be set to one of the
|
/** Specify which HTTP version to use! This must be set to one of the
|
||||||
|
@ -942,7 +942,7 @@ enum CurlOption {
|
||||||
PASV command. */
|
PASV command. */
|
||||||
ftp_use_epsv,
|
ftp_use_epsv,
|
||||||
/** type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */
|
/** type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */
|
||||||
sslcerttype = 10086,
|
sslcerttype = 10_086,
|
||||||
/** name of the file keeping your private SSL-key */
|
/** name of the file keeping your private SSL-key */
|
||||||
sslkey,
|
sslkey,
|
||||||
/** type of the file keeping your private SSL-key ("DER", "PEM", "ENG") */
|
/** type of the file keeping your private SSL-key ("DER", "PEM", "ENG") */
|
||||||
|
@ -958,16 +958,16 @@ enum CurlOption {
|
||||||
/** DNS cache timeout */
|
/** DNS cache timeout */
|
||||||
dns_cache_timeout,
|
dns_cache_timeout,
|
||||||
/** send linked-list of pre-transfer QUOTE commands */
|
/** send linked-list of pre-transfer QUOTE commands */
|
||||||
prequote = 10093,
|
prequote = 10_093,
|
||||||
/** set the debug function */
|
/** set the debug function */
|
||||||
debugfunction = 20094,
|
debugfunction = 20_094,
|
||||||
/** set the data for the debug function */
|
/** set the data for the debug function */
|
||||||
debugdata = 10095,
|
debugdata = 10_095,
|
||||||
/** mark this as start of a cookie session */
|
/** mark this as start of a cookie session */
|
||||||
cookiesession = 96,
|
cookiesession = 96,
|
||||||
/** The CApath directory used to validate the peer certificate
|
/** The CApath directory used to validate the peer certificate
|
||||||
this option is used only if SSL_VERIFYPEER is true */
|
this option is used only if SSL_VERIFYPEER is true */
|
||||||
capath = 10097,
|
capath = 10_097,
|
||||||
/** Instruct libcurl to use a smaller receive buffer */
|
/** Instruct libcurl to use a smaller receive buffer */
|
||||||
buffersize = 98,
|
buffersize = 98,
|
||||||
/** Instruct libcurl to not use any signal/alarm handlers, even when using
|
/** Instruct libcurl to not use any signal/alarm handlers, even when using
|
||||||
|
@ -975,13 +975,13 @@ enum CurlOption {
|
||||||
See libcurl-the-guide for more background information. */
|
See libcurl-the-guide for more background information. */
|
||||||
nosignal,
|
nosignal,
|
||||||
/** Provide a CURLShare for mutexing non-ts data */
|
/** Provide a CURLShare for mutexing non-ts data */
|
||||||
share = 10100,
|
share = 10_100,
|
||||||
/** indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
|
/** indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
|
||||||
CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */
|
CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */
|
||||||
proxytype = 101,
|
proxytype = 101,
|
||||||
/** Set the Accept-Encoding string. Use this to tell a server you would like
|
/** Set the Accept-Encoding string. Use this to tell a server you would like
|
||||||
the response to be compressed. */
|
the response to be compressed. */
|
||||||
encoding = 10102,
|
encoding = 10_102,
|
||||||
/** Set pointer to private data */
|
/** Set pointer to private data */
|
||||||
private_opt,
|
private_opt,
|
||||||
/** Set aliases for HTTP 200 in the HTTP Response header */
|
/** Set aliases for HTTP 200 in the HTTP Response header */
|
||||||
|
@ -1001,10 +1001,10 @@ enum CurlOption {
|
||||||
/** Set the ssl context callback function, currently only for OpenSSL ssl_ctx
|
/** Set the ssl context callback function, currently only for OpenSSL ssl_ctx
|
||||||
in second argument. The function must be matching the
|
in second argument. The function must be matching the
|
||||||
curl_ssl_ctx_callback proto. */
|
curl_ssl_ctx_callback proto. */
|
||||||
ssl_ctx_function = 20108,
|
ssl_ctx_function = 20_108,
|
||||||
/** Set the userdata for the ssl context callback function's third
|
/** Set the userdata for the ssl context callback function's third
|
||||||
argument */
|
argument */
|
||||||
ssl_ctx_data = 10109,
|
ssl_ctx_data = 10_109,
|
||||||
/** FTP Option that causes missing dirs to be created on the remote server.
|
/** FTP Option that causes missing dirs to be created on the remote server.
|
||||||
In 7.19.4 we introduced the convenience enums for this option using the
|
In 7.19.4 we introduced the convenience enums for this option using the
|
||||||
CURLFTP_CREATE_DIR prefix.
|
CURLFTP_CREATE_DIR prefix.
|
||||||
|
@ -1032,7 +1032,7 @@ enum CurlOption {
|
||||||
/** See the comment for INFILESIZE above, but in short, specifies
|
/** See the comment for INFILESIZE above, but in short, specifies
|
||||||
* the size of the file being uploaded. -1 means unknown.
|
* the size of the file being uploaded. -1 means unknown.
|
||||||
*/
|
*/
|
||||||
infilesize_large = 30115,
|
infilesize_large = 30_115,
|
||||||
/** Sets the continuation offset. There is also a LONG version of this;
|
/** Sets the continuation offset. There is also a LONG version of this;
|
||||||
* look above for RESUME_FROM.
|
* look above for RESUME_FROM.
|
||||||
*/
|
*/
|
||||||
|
@ -1045,7 +1045,7 @@ enum CurlOption {
|
||||||
to parse (using the CURLOPT_NETRC option). If not set, libcurl will do
|
to parse (using the CURLOPT_NETRC option). If not set, libcurl will do
|
||||||
a poor attempt to find the user's home directory and check for a .netrc
|
a poor attempt to find the user's home directory and check for a .netrc
|
||||||
file in there. */
|
file in there. */
|
||||||
netrc_file = 10118,
|
netrc_file = 10_118,
|
||||||
/** Enable SSL/TLS for FTP, pick one of:
|
/** Enable SSL/TLS for FTP, pick one of:
|
||||||
CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise
|
CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise
|
||||||
CURLFTPSSL_CONTROL - SSL for the control connection or fail
|
CURLFTPSSL_CONTROL - SSL for the control connection or fail
|
||||||
|
@ -1053,7 +1053,7 @@ enum CurlOption {
|
||||||
*/
|
*/
|
||||||
use_ssl = 119,
|
use_ssl = 119,
|
||||||
/** The _LARGE version of the standard POSTFIELDSIZE option */
|
/** The _LARGE version of the standard POSTFIELDSIZE option */
|
||||||
postfieldsize_large = 30120,
|
postfieldsize_large = 30_120,
|
||||||
/** Enable/disable the TCP Nagle algorithm */
|
/** Enable/disable the TCP Nagle algorithm */
|
||||||
tcp_nodelay = 121,
|
tcp_nodelay = 121,
|
||||||
/* 122 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
|
/* 122 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
|
||||||
|
@ -1075,14 +1075,14 @@ enum CurlOption {
|
||||||
CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL
|
CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL
|
||||||
*/
|
*/
|
||||||
ftpsslauth = 129,
|
ftpsslauth = 129,
|
||||||
ioctlfunction = 20130, ///
|
ioctlfunction = 20_130, ///
|
||||||
ioctldata = 10131, ///
|
ioctldata = 10_131, ///
|
||||||
/* 132 OBSOLETE. Gone in 7.16.0 */
|
/* 132 OBSOLETE. Gone in 7.16.0 */
|
||||||
/* 133 OBSOLETE. Gone in 7.16.0 */
|
/* 133 OBSOLETE. Gone in 7.16.0 */
|
||||||
|
|
||||||
/** zero terminated string for pass on to the FTP server when asked for
|
/** zero terminated string for pass on to the FTP server when asked for
|
||||||
"account" info */
|
"account" info */
|
||||||
ftp_account = 10134,
|
ftp_account = 10_134,
|
||||||
/** feed cookies into cookie engine */
|
/** feed cookies into cookie engine */
|
||||||
cookielist,
|
cookielist,
|
||||||
/** ignore Content-Length */
|
/** ignore Content-Length */
|
||||||
|
@ -1106,7 +1106,7 @@ enum CurlOption {
|
||||||
connect_only,
|
connect_only,
|
||||||
/** Function that will be called to convert from the
|
/** Function that will be called to convert from the
|
||||||
network encoding (instead of using the iconv calls in libcurl) */
|
network encoding (instead of using the iconv calls in libcurl) */
|
||||||
conv_from_network_function = 20142,
|
conv_from_network_function = 20_142,
|
||||||
/** Function that will be called to convert to the
|
/** Function that will be called to convert to the
|
||||||
network encoding (instead of using the iconv calls in libcurl) */
|
network encoding (instead of using the iconv calls in libcurl) */
|
||||||
conv_to_network_function,
|
conv_to_network_function,
|
||||||
|
@ -1117,20 +1117,20 @@ enum CurlOption {
|
||||||
/** If the connection proceeds too quickly then need to slow it down */
|
/** If the connection proceeds too quickly then need to slow it down */
|
||||||
/** */
|
/** */
|
||||||
/** limit-rate: maximum number of bytes per second to send or receive */
|
/** limit-rate: maximum number of bytes per second to send or receive */
|
||||||
max_send_speed_large = 30145,
|
max_send_speed_large = 30_145,
|
||||||
max_recv_speed_large, /// ditto
|
max_recv_speed_large, /// ditto
|
||||||
/** Pointer to command string to send if USER/PASS fails. */
|
/** Pointer to command string to send if USER/PASS fails. */
|
||||||
ftp_alternative_to_user = 10147,
|
ftp_alternative_to_user = 10_147,
|
||||||
/** callback function for setting socket options */
|
/** callback function for setting socket options */
|
||||||
sockoptfunction = 20148,
|
sockoptfunction = 20_148,
|
||||||
sockoptdata = 10149,
|
sockoptdata = 10_149,
|
||||||
/** set to 0 to disable session ID re-use for this transfer, default is
|
/** set to 0 to disable session ID re-use for this transfer, default is
|
||||||
enabled (== 1) */
|
enabled (== 1) */
|
||||||
ssl_sessionid_cache = 150,
|
ssl_sessionid_cache = 150,
|
||||||
/** allowed SSH authentication methods */
|
/** allowed SSH authentication methods */
|
||||||
ssh_auth_types,
|
ssh_auth_types,
|
||||||
/** Used by scp/sftp to do public/private key authentication */
|
/** Used by scp/sftp to do public/private key authentication */
|
||||||
ssh_public_keyfile = 10152,
|
ssh_public_keyfile = 10_152,
|
||||||
ssh_private_keyfile,
|
ssh_private_keyfile,
|
||||||
/** Send CCC (Clear Command Channel) after authentication */
|
/** Send CCC (Clear Command Channel) after authentication */
|
||||||
ftp_ssl_ccc = 154,
|
ftp_ssl_ccc = 154,
|
||||||
|
@ -1149,20 +1149,20 @@ enum CurlOption {
|
||||||
of CURL_REDIR* defines below. This used to be called CURLOPT_POST301 */
|
of CURL_REDIR* defines below. This used to be called CURLOPT_POST301 */
|
||||||
postredir,
|
postredir,
|
||||||
/** used by scp/sftp to verify the host's public key */
|
/** used by scp/sftp to verify the host's public key */
|
||||||
ssh_host_public_key_md5 = 10162,
|
ssh_host_public_key_md5 = 10_162,
|
||||||
/** Callback function for opening socket (instead of socket(2)). Optionally,
|
/** Callback function for opening socket (instead of socket(2)). Optionally,
|
||||||
callback is able change the address or refuse to connect returning
|
callback is able change the address or refuse to connect returning
|
||||||
CURL_SOCKET_BAD. The callback should have type
|
CURL_SOCKET_BAD. The callback should have type
|
||||||
curl_opensocket_callback */
|
curl_opensocket_callback */
|
||||||
opensocketfunction = 20163,
|
opensocketfunction = 20_163,
|
||||||
opensocketdata = 10164, /// ditto
|
opensocketdata = 10_164, /// ditto
|
||||||
/** POST volatile input fields. */
|
/** POST volatile input fields. */
|
||||||
copypostfields,
|
copypostfields,
|
||||||
/** set transfer mode (;type=$(LT)a|i$(GT)) when doing FTP via an HTTP proxy */
|
/** set transfer mode (;type=$(LT)a|i$(GT)) when doing FTP via an HTTP proxy */
|
||||||
proxy_transfer_mode = 166,
|
proxy_transfer_mode = 166,
|
||||||
/** Callback function for seeking in the input stream */
|
/** Callback function for seeking in the input stream */
|
||||||
seekfunction = 20167,
|
seekfunction = 20_167,
|
||||||
seekdata = 10168, /// ditto
|
seekdata = 10_168, /// ditto
|
||||||
/** CRL file */
|
/** CRL file */
|
||||||
crlfile,
|
crlfile,
|
||||||
/** Issuer certificate */
|
/** Issuer certificate */
|
||||||
|
@ -1174,7 +1174,7 @@ enum CurlOption {
|
||||||
working with OpenSSL-powered builds. */
|
working with OpenSSL-powered builds. */
|
||||||
certinfo,
|
certinfo,
|
||||||
/** "name" and "pwd" to use when fetching. */
|
/** "name" and "pwd" to use when fetching. */
|
||||||
username = 10173,
|
username = 10_173,
|
||||||
password, /// ditto
|
password, /// ditto
|
||||||
/** "name" and "pwd" to use with Proxy when fetching. */
|
/** "name" and "pwd" to use with Proxy when fetching. */
|
||||||
proxyusername,
|
proxyusername,
|
||||||
|
@ -1190,7 +1190,7 @@ enum CurlOption {
|
||||||
/** block size for TFTP transfers */
|
/** block size for TFTP transfers */
|
||||||
tftp_blksize = 178,
|
tftp_blksize = 178,
|
||||||
/** Socks Service */
|
/** Socks Service */
|
||||||
socks5_gssapi_service = 10179,
|
socks5_gssapi_service = 10_179,
|
||||||
/** Socks Service */
|
/** Socks Service */
|
||||||
socks5_gssapi_nec = 180,
|
socks5_gssapi_nec = 180,
|
||||||
/** set the bitmask for the protocols that are allowed to be used for the
|
/** set the bitmask for the protocols that are allowed to be used for the
|
||||||
|
@ -1204,12 +1204,12 @@ enum CurlOption {
|
||||||
to all protocols except FILE and SCP. */
|
to all protocols except FILE and SCP. */
|
||||||
redir_protocols,
|
redir_protocols,
|
||||||
/** set the SSH knownhost file name to use */
|
/** set the SSH knownhost file name to use */
|
||||||
ssh_knownhosts = 10183,
|
ssh_knownhosts = 10_183,
|
||||||
/** set the SSH host key callback, must point to a curl_sshkeycallback
|
/** set the SSH host key callback, must point to a curl_sshkeycallback
|
||||||
function */
|
function */
|
||||||
ssh_keyfunction = 20184,
|
ssh_keyfunction = 20_184,
|
||||||
/** set the SSH host key callback custom pointer */
|
/** set the SSH host key callback custom pointer */
|
||||||
ssh_keydata = 10185,
|
ssh_keydata = 10_185,
|
||||||
/** set the SMTP mail originator */
|
/** set the SMTP mail originator */
|
||||||
mail_from,
|
mail_from,
|
||||||
/** set the SMTP mail receiver(s) */
|
/** set the SMTP mail receiver(s) */
|
||||||
|
@ -1219,7 +1219,7 @@ enum CurlOption {
|
||||||
/** RTSP request method (OPTIONS, SETUP, PLAY, etc...) */
|
/** RTSP request method (OPTIONS, SETUP, PLAY, etc...) */
|
||||||
rtsp_request,
|
rtsp_request,
|
||||||
/** The RTSP session identifier */
|
/** The RTSP session identifier */
|
||||||
rtsp_session_id = 10190,
|
rtsp_session_id = 10_190,
|
||||||
/** The RTSP stream URI */
|
/** The RTSP stream URI */
|
||||||
rtsp_stream_uri,
|
rtsp_stream_uri,
|
||||||
/** The Transport: header to use in RTSP requests */
|
/** The Transport: header to use in RTSP requests */
|
||||||
|
@ -1229,21 +1229,21 @@ enum CurlOption {
|
||||||
/** Manually initialize the server RTSP CSeq for this handle */
|
/** Manually initialize the server RTSP CSeq for this handle */
|
||||||
rtsp_server_cseq,
|
rtsp_server_cseq,
|
||||||
/** The stream to pass to INTERLEAVEFUNCTION. */
|
/** The stream to pass to INTERLEAVEFUNCTION. */
|
||||||
interleavedata = 10195,
|
interleavedata = 10_195,
|
||||||
/** Let the application define a custom write method for RTP data */
|
/** Let the application define a custom write method for RTP data */
|
||||||
interleavefunction = 20196,
|
interleavefunction = 20_196,
|
||||||
/** Turn on wildcard matching */
|
/** Turn on wildcard matching */
|
||||||
wildcardmatch = 197,
|
wildcardmatch = 197,
|
||||||
/** Directory matching callback called before downloading of an
|
/** Directory matching callback called before downloading of an
|
||||||
individual file (chunk) started */
|
individual file (chunk) started */
|
||||||
chunk_bgn_function = 20198,
|
chunk_bgn_function = 20_198,
|
||||||
/** Directory matching callback called after the file (chunk)
|
/** Directory matching callback called after the file (chunk)
|
||||||
was downloaded, or skipped */
|
was downloaded, or skipped */
|
||||||
chunk_end_function,
|
chunk_end_function,
|
||||||
/** Change match (fnmatch-like) callback for wildcard matching */
|
/** Change match (fnmatch-like) callback for wildcard matching */
|
||||||
fnmatch_function,
|
fnmatch_function,
|
||||||
/** Let the application define custom chunk data pointer */
|
/** Let the application define custom chunk data pointer */
|
||||||
chunk_data = 10201,
|
chunk_data = 10_201,
|
||||||
/** FNMATCH_FUNCTION user pointer */
|
/** FNMATCH_FUNCTION user pointer */
|
||||||
fnmatch_data,
|
fnmatch_data,
|
||||||
/** send linked-list of name:port:address sets */
|
/** send linked-list of name:port:address sets */
|
||||||
|
@ -1652,9 +1652,9 @@ enum CURLINFO_TYPEMASK = 0xf00000;
|
||||||
///
|
///
|
||||||
enum CurlInfo {
|
enum CurlInfo {
|
||||||
none, ///
|
none, ///
|
||||||
effective_url = 1048577, ///
|
effective_url = 1_048_577, ///
|
||||||
response_code = 2097154, ///
|
response_code = 2_097_154, ///
|
||||||
total_time = 3145731, ///
|
total_time = 3_145_731, ///
|
||||||
namelookup_time, ///
|
namelookup_time, ///
|
||||||
connect_time, ///
|
connect_time, ///
|
||||||
pretransfer_time, ///
|
pretransfer_time, ///
|
||||||
|
@ -1662,38 +1662,38 @@ enum CurlInfo {
|
||||||
size_download, ///
|
size_download, ///
|
||||||
speed_download, ///
|
speed_download, ///
|
||||||
speed_upload, ///
|
speed_upload, ///
|
||||||
header_size = 2097163, ///
|
header_size = 2_097_163, ///
|
||||||
request_size, ///
|
request_size, ///
|
||||||
ssl_verifyresult, ///
|
ssl_verifyresult, ///
|
||||||
filetime, ///
|
filetime, ///
|
||||||
content_length_download = 3145743, ///
|
content_length_download = 3_145_743, ///
|
||||||
content_length_upload, ///
|
content_length_upload, ///
|
||||||
starttransfer_time, ///
|
starttransfer_time, ///
|
||||||
content_type = 1048594, ///
|
content_type = 1_048_594, ///
|
||||||
redirect_time = 3145747, ///
|
redirect_time = 3_145_747, ///
|
||||||
redirect_count = 2097172, ///
|
redirect_count = 2_097_172, ///
|
||||||
private_info = 1048597, ///
|
private_info = 1_048_597, ///
|
||||||
http_connectcode = 2097174, ///
|
http_connectcode = 2_097_174, ///
|
||||||
httpauth_avail, ///
|
httpauth_avail, ///
|
||||||
proxyauth_avail, ///
|
proxyauth_avail, ///
|
||||||
os_errno, ///
|
os_errno, ///
|
||||||
num_connects, ///
|
num_connects, ///
|
||||||
ssl_engines = 4194331, ///
|
ssl_engines = 4_194_331, ///
|
||||||
cookielist, ///
|
cookielist, ///
|
||||||
lastsocket = 2097181, ///
|
lastsocket = 2_097_181, ///
|
||||||
ftp_entry_path = 1048606, ///
|
ftp_entry_path = 1_048_606, ///
|
||||||
redirect_url, ///
|
redirect_url, ///
|
||||||
primary_ip, ///
|
primary_ip, ///
|
||||||
appconnect_time = 3145761, ///
|
appconnect_time = 3_145_761, ///
|
||||||
certinfo = 4194338, ///
|
certinfo = 4_194_338, ///
|
||||||
condition_unmet = 2097187, ///
|
condition_unmet = 2_097_187, ///
|
||||||
rtsp_session_id = 1048612, ///
|
rtsp_session_id = 1_048_612, ///
|
||||||
rtsp_client_cseq = 2097189, ///
|
rtsp_client_cseq = 2_097_189, ///
|
||||||
rtsp_server_cseq, ///
|
rtsp_server_cseq, ///
|
||||||
rtsp_cseq_recv, ///
|
rtsp_cseq_recv, ///
|
||||||
primary_port, ///
|
primary_port, ///
|
||||||
local_ip = 1048617, ///
|
local_ip = 1_048_617, ///
|
||||||
local_port = 2097194, ///
|
local_port = 2_097_194, ///
|
||||||
/** Fill in new entries below here! */
|
/** Fill in new entries below here! */
|
||||||
lastone = 42
|
lastone = 42
|
||||||
}
|
}
|
||||||
|
@ -1867,7 +1867,7 @@ enum CurlVersion {
|
||||||
sspi = 2048, /** SSPI is supported */
|
sspi = 2048, /** SSPI is supported */
|
||||||
conv = 4096, /** character conversions supported */
|
conv = 4096, /** character conversions supported */
|
||||||
curldebug = 8192, /** debug memory tracking supported */
|
curldebug = 8192, /** debug memory tracking supported */
|
||||||
tlsauth_srp = 16384 /** TLS-SRP auth is supported */
|
tlsauth_srp = 16_384 /** TLS-SRP auth is supported */
|
||||||
}
|
}
|
||||||
|
|
||||||
extern (C) {
|
extern (C) {
|
||||||
|
@ -2304,11 +2304,11 @@ extern (C) CURLMcode curl_multi_timeout(CURLM *multi_handle, c_long *millisecon
|
||||||
|
|
||||||
///
|
///
|
||||||
enum CurlMOption {
|
enum CurlMOption {
|
||||||
socketfunction = 20001, /** This is the socket callback function pointer */
|
socketfunction = 20_001, /** This is the socket callback function pointer */
|
||||||
socketdata = 10002, /** This is the argument passed to the socket callback */
|
socketdata = 10_002, /** This is the argument passed to the socket callback */
|
||||||
pipelining = 3, /** set to 1 to enable pipelining for this multi handle */
|
pipelining = 3, /** set to 1 to enable pipelining for this multi handle */
|
||||||
timerfunction = 20004, /** This is the timer callback function pointer */
|
timerfunction = 20_004, /** This is the timer callback function pointer */
|
||||||
timerdata = 10005, /** This is the argument passed to the timer callback */
|
timerdata = 10_005, /** This is the argument passed to the timer callback */
|
||||||
maxconnects = 6, /** maximum number of entries in the connection cache */
|
maxconnects = 6, /** maximum number of entries in the connection cache */
|
||||||
lastentry ///
|
lastentry ///
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,17 +67,17 @@ enum
|
||||||
SQL_HANDLE_DESC = 4,
|
SQL_HANDLE_DESC = 4,
|
||||||
|
|
||||||
// * environment attribute *
|
// * environment attribute *
|
||||||
SQL_ATTR_OUTPUT_NTS = 10001,
|
SQL_ATTR_OUTPUT_NTS = 10_001,
|
||||||
|
|
||||||
// * connection attributes *
|
// * connection attributes *
|
||||||
SQL_ATTR_AUTO_IPD = 10001,
|
SQL_ATTR_AUTO_IPD = 10_001,
|
||||||
SQL_ATTR_METADATA_ID = 10014,
|
SQL_ATTR_METADATA_ID = 10_014,
|
||||||
|
|
||||||
// * statement attributes *
|
// * statement attributes *
|
||||||
SQL_ATTR_APP_ROW_DESC = 10010,
|
SQL_ATTR_APP_ROW_DESC = 10_010,
|
||||||
SQL_ATTR_APP_PARAM_DESC = 10011,
|
SQL_ATTR_APP_PARAM_DESC = 10_011,
|
||||||
SQL_ATTR_IMP_ROW_DESC = 10012,
|
SQL_ATTR_IMP_ROW_DESC = 10_012,
|
||||||
SQL_ATTR_IMP_PARAM_DESC = 10013,
|
SQL_ATTR_IMP_PARAM_DESC = 10_013,
|
||||||
SQL_ATTR_CURSOR_SCROLLABLE = (-1),
|
SQL_ATTR_CURSOR_SCROLLABLE = (-1),
|
||||||
SQL_ATTR_CURSOR_SENSITIVITY = (-2),
|
SQL_ATTR_CURSOR_SENSITIVITY = (-2),
|
||||||
|
|
||||||
|
@ -453,12 +453,12 @@ enum
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
SQL_XOPEN_CLI_YEAR = 10000,
|
SQL_XOPEN_CLI_YEAR = 10_000,
|
||||||
SQL_CURSOR_SENSITIVITY = 10001,
|
SQL_CURSOR_SENSITIVITY = 10_001,
|
||||||
SQL_DESCRIBE_PARAMETER = 10002,
|
SQL_DESCRIBE_PARAMETER = 10_002,
|
||||||
SQL_CATALOG_NAME = 10003,
|
SQL_CATALOG_NAME = 10_003,
|
||||||
SQL_COLLATION_SEQ = 10004,
|
SQL_COLLATION_SEQ = 10_004,
|
||||||
SQL_MAX_IDENTIFIER_LEN = 10005,
|
SQL_MAX_IDENTIFIER_LEN = 10_005,
|
||||||
SQL_MAXIMUM_IDENTIFIER_LENGTH = SQL_MAX_IDENTIFIER_LEN
|
SQL_MAXIMUM_IDENTIFIER_LENGTH = SQL_MAX_IDENTIFIER_LEN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -661,7 +661,7 @@ enum
|
||||||
SQL_ALTER_DOMAIN = 117,
|
SQL_ALTER_DOMAIN = 117,
|
||||||
SQL_SQL_CONFORMANCE = 118,
|
SQL_SQL_CONFORMANCE = 118,
|
||||||
SQL_DATETIME_LITERALS = 119,
|
SQL_DATETIME_LITERALS = 119,
|
||||||
SQL_ASYNC_MODE = 10021, /* new X/Open spec */
|
SQL_ASYNC_MODE = 10_021, /* new X/Open spec */
|
||||||
SQL_BATCH_ROW_COUNT = 120,
|
SQL_BATCH_ROW_COUNT = 120,
|
||||||
SQL_BATCH_SUPPORT = 121,
|
SQL_BATCH_SUPPORT = 121,
|
||||||
SQL_QUALIFIER_LOCATION = 114,
|
SQL_QUALIFIER_LOCATION = 114,
|
||||||
|
@ -702,7 +702,7 @@ enum
|
||||||
SQL_INFO_SCHEMA_VIEWS = 149,
|
SQL_INFO_SCHEMA_VIEWS = 149,
|
||||||
SQL_KEYSET_CURSOR_ATTRIBUTES1 = 150,
|
SQL_KEYSET_CURSOR_ATTRIBUTES1 = 150,
|
||||||
SQL_KEYSET_CURSOR_ATTRIBUTES2 = 151,
|
SQL_KEYSET_CURSOR_ATTRIBUTES2 = 151,
|
||||||
SQL_MAX_ASYNC_CONCURRENT_STATEMENTS = 10022, /* new X/Open spec */
|
SQL_MAX_ASYNC_CONCURRENT_STATEMENTS = 10_022, /* new X/Open spec */
|
||||||
SQL_ODBC_INTERFACE_CONFORMANCE = 152,
|
SQL_ODBC_INTERFACE_CONFORMANCE = 152,
|
||||||
SQL_PARAM_ARRAY_ROW_COUNTS = 153,
|
SQL_PARAM_ARRAY_ROW_COUNTS = 153,
|
||||||
SQL_PARAM_ARRAY_SELECTS = 154,
|
SQL_PARAM_ARRAY_SELECTS = 154,
|
||||||
|
|
|
@ -41,7 +41,7 @@ extern (C) __gshared nothrow:
|
||||||
*/
|
*/
|
||||||
enum SQLITE_VERSION = "3.10.2";
|
enum SQLITE_VERSION = "3.10.2";
|
||||||
/// Ditto
|
/// Ditto
|
||||||
enum SQLITE_VERSION_NUMBER = 3010002;
|
enum SQLITE_VERSION_NUMBER = 3_010_002;
|
||||||
/// Ditto
|
/// Ditto
|
||||||
enum SQLITE_SOURCE_ID = "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9";
|
enum SQLITE_SOURCE_ID = "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9";
|
||||||
|
|
||||||
|
|
|
@ -3600,7 +3600,7 @@ The number of seeds must be correspondingly increased.
|
||||||
static if (DummyType.rt <= RangeType.Forward)
|
static if (DummyType.rt <= RangeType.Forward)
|
||||||
static assert(propagatesRangeType!(typeof(m), DummyType));
|
static assert(propagatesRangeType!(typeof(m), DummyType));
|
||||||
|
|
||||||
assert(m.equal([1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800]));
|
assert(m.equal([1, 2, 6, 24, 120, 720, 5040, 40_320, 362_880, 3_628_800]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35242,7 +35242,7 @@ version(unittest)
|
||||||
sort(diffs);
|
sort(diffs);
|
||||||
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];
|
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];
|
||||||
|
|
||||||
testFracSecs = [Duration.zero, hnsecs(1), hnsecs(5007), hnsecs(9999999)];
|
testFracSecs = [Duration.zero, hnsecs(1), hnsecs(5007), hnsecs(9_999_999)];
|
||||||
|
|
||||||
foreach (year; testYearsBC)
|
foreach (year; testYearsBC)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ template memoize(alias fun, uint maxSize)
|
||||||
else if (memo[idx1].args == args)
|
else if (memo[idx1].args == args)
|
||||||
return memo[idx1].res;
|
return memo[idx1].res;
|
||||||
// FNV prime
|
// FNV prime
|
||||||
immutable idx2 = (hash * 16777619) % maxSize;
|
immutable idx2 = (hash * 16_777_619) % maxSize;
|
||||||
if (!bt(initialized.ptr, idx2))
|
if (!bt(initialized.ptr, idx2))
|
||||||
{
|
{
|
||||||
emplace(&memo[idx2], memo[idx1]);
|
emplace(&memo[idx2], memo[idx1]);
|
||||||
|
|
|
@ -1147,7 +1147,7 @@ int highestPowerBelowUintMax(uint x) pure nothrow @safe
|
||||||
if (x<85) return 5;
|
if (x<85) return 5;
|
||||||
if (x<256) return 4;
|
if (x<256) return 4;
|
||||||
if (x<1626) return 3;
|
if (x<1626) return 3;
|
||||||
if (x<65536) return 2;
|
if (x<65_536) return 2;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1167,8 +1167,8 @@ int highestPowerBelowUlongMax(uint x) pure nothrow @safe
|
||||||
if (x<566) return 7;
|
if (x<566) return 7;
|
||||||
if (x<1626) return 6;
|
if (x<1626) return 6;
|
||||||
if (x<7132) return 5;
|
if (x<7132) return 5;
|
||||||
if (x<65536) return 4;
|
if (x<65_536) return 4;
|
||||||
if (x<2642246) return 3;
|
if (x<2_642_246) return 3;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1753,9 +1753,9 @@ body
|
||||||
// Multiply existing number by 10^19, then add y1.
|
// Multiply existing number by 10^19, then add y1.
|
||||||
if (hi>0)
|
if (hi>0)
|
||||||
{
|
{
|
||||||
data[hi] = multibyteMul(data[0 .. hi], data[0 .. hi], 1220703125*2u, 0); // 5^13*2 = 0x9184_E72A
|
data[hi] = multibyteMul(data[0 .. hi], data[0 .. hi], 1_220_703_125*2u, 0); // 5^13*2 = 0x9184_E72A
|
||||||
++hi;
|
++hi;
|
||||||
data[hi] = multibyteMul(data[0 .. hi], data[0 .. hi], 15625*262144u, 0); // 5^6*2^18 = 0xF424_0000
|
data[hi] = multibyteMul(data[0 .. hi], data[0 .. hi], 15_625*262_144u, 0); // 5^6*2^18 = 0xF424_0000
|
||||||
++hi;
|
++hi;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -272,7 +272,7 @@ real expx2(real x, int sign)
|
||||||
Cephes Math Library Release 2.9: June, 2000
|
Cephes Math Library Release 2.9: June, 2000
|
||||||
Copyright 2000 by Stephen L. Moshier
|
Copyright 2000 by Stephen L. Moshier
|
||||||
*/
|
*/
|
||||||
const real M = 32768.0;
|
const real M = 32_768.0;
|
||||||
const real MINV = 3.0517578125e-5L;
|
const real MINV = 3.0517578125e-5L;
|
||||||
|
|
||||||
x = abs(x);
|
x = abs(x);
|
||||||
|
|
|
@ -3815,36 +3815,36 @@ bool isFormatGen(dchar ch) @safe pure nothrow
|
||||||
else if (ch < 8293) return true;
|
else if (ch < 8293) return true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch < 69821)
|
if (ch < 69_821)
|
||||||
{
|
{
|
||||||
if (ch < 65279)
|
if (ch < 65_279)
|
||||||
{
|
{
|
||||||
if (ch < 8294) return false;
|
if (ch < 8294) return false;
|
||||||
if (ch < 8304) return true;
|
if (ch < 8304) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (ch < 65280) return true;
|
else if (ch < 65_280) return true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch < 65529) return false;
|
if (ch < 65_529) return false;
|
||||||
if (ch < 65532) return true;
|
if (ch < 65_532) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ch < 69822) return true;
|
else if (ch < 69_822) return true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch < 917505)
|
if (ch < 917_505)
|
||||||
{
|
{
|
||||||
if (ch < 119155) return false;
|
if (ch < 119_155) return false;
|
||||||
if (ch < 119163) return true;
|
if (ch < 119_163) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (ch < 917506) return true;
|
else if (ch < 917_506) return true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch < 917536) return false;
|
if (ch < 917_536) return false;
|
||||||
if (ch < 917632) return true;
|
if (ch < 917_632) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3880,7 +3880,7 @@ bool isSpaceGen(dchar ch) @safe pure nothrow
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch == 8287) return true;
|
if (ch == 8287) return true;
|
||||||
if (ch == 12288) return true;
|
if (ch == 12_288) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3924,7 +3924,7 @@ bool isWhiteGen(dchar ch) @safe pure nothrow @nogc
|
||||||
else if (ch < 8288) return true;
|
else if (ch < 8288) return true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ch == 12288) return true;
|
if (ch == 12_288) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3935,8 +3935,8 @@ bool isHangL(dchar ch) @safe pure nothrow
|
||||||
{
|
{
|
||||||
if (ch < 4352) return false;
|
if (ch < 4352) return false;
|
||||||
if (ch < 4448) return true;
|
if (ch < 4448) return true;
|
||||||
if (ch < 43360) return false;
|
if (ch < 43_360) return false;
|
||||||
if (ch < 43389) return true;
|
if (ch < 43_389) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3944,8 +3944,8 @@ bool isHangV(dchar ch) @safe pure nothrow
|
||||||
{
|
{
|
||||||
if (ch < 4448) return false;
|
if (ch < 4448) return false;
|
||||||
if (ch < 4520) return true;
|
if (ch < 4520) return true;
|
||||||
if (ch < 55216) return false;
|
if (ch < 55_216) return false;
|
||||||
if (ch < 55239) return true;
|
if (ch < 55_239) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3953,8 +3953,8 @@ bool isHangT(dchar ch) @safe pure nothrow
|
||||||
{
|
{
|
||||||
if (ch < 4520) return false;
|
if (ch < 4520) return false;
|
||||||
if (ch < 4608) return true;
|
if (ch < 4608) return true;
|
||||||
if (ch < 55243) return false;
|
if (ch < 55_243) return false;
|
||||||
if (ch < 55292) return true;
|
if (ch < 55_292) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2160,8 +2160,8 @@ L_was_nan:
|
||||||
];
|
];
|
||||||
|
|
||||||
// Overflow and Underflow limits.
|
// Overflow and Underflow limits.
|
||||||
enum real OF = 16384.0L;
|
enum real OF = 16_384.0L;
|
||||||
enum real UF = -16382.0L;
|
enum real UF = -16_382.0L;
|
||||||
|
|
||||||
// Special cases. Raises an overflow or underflow flag accordingly,
|
// Special cases. Raises an overflow or underflow flag accordingly,
|
||||||
// except in the case for CTFE, where there are no hardware controls.
|
// except in the case for CTFE, where there are no hardware controls.
|
||||||
|
@ -6350,7 +6350,7 @@ if (isFloatingPoint!(F) && isFloatingPoint!(G))
|
||||||
|
|
||||||
// Integer power of x.
|
// Integer power of x.
|
||||||
long iy = cast(long) y;
|
long iy = cast(long) y;
|
||||||
if (iy == y && fabs(y) < 32768.0)
|
if (iy == y && fabs(y) < 32_768.0)
|
||||||
return pow(x, iy);
|
return pow(x, iy);
|
||||||
|
|
||||||
real sign = 1.0;
|
real sign = 1.0;
|
||||||
|
|
|
@ -4545,11 +4545,11 @@ version(unittest)
|
||||||
{
|
{
|
||||||
struct __S_12733
|
struct __S_12733
|
||||||
{
|
{
|
||||||
invariant() { assert(checksum == 1234567890); }
|
invariant() { assert(checksum == 1_234_567_890); }
|
||||||
this(ulong u){n = u;}
|
this(ulong u){n = u;}
|
||||||
void opAssign(__S_12733 s){this.n = s.n;}
|
void opAssign(__S_12733 s){this.n = s.n;}
|
||||||
ulong n;
|
ulong n;
|
||||||
ulong checksum = 1234567890;
|
ulong checksum = 1_234_567_890;
|
||||||
}
|
}
|
||||||
|
|
||||||
static auto __genPair_12733(ulong n) { return __S_12733(n); }
|
static auto __genPair_12733(ulong n) { return __S_12733(n); }
|
||||||
|
|
24
std/random.d
24
std/random.d
|
@ -444,9 +444,9 @@ generator) that uses 16807 for the multiplier. $(D MinstdRand)
|
||||||
implements a variant that has slightly better spectral behavior by
|
implements a variant that has slightly better spectral behavior by
|
||||||
using the multiplier 48271. Both generators are rather simplistic.
|
using the multiplier 48271. Both generators are rather simplistic.
|
||||||
*/
|
*/
|
||||||
alias MinstdRand0 = LinearCongruentialEngine!(uint, 16807, 0, 2147483647);
|
alias MinstdRand0 = LinearCongruentialEngine!(uint, 16_807, 0, 2_147_483_647);
|
||||||
/// ditto
|
/// ditto
|
||||||
alias MinstdRand = LinearCongruentialEngine!(uint, 48271, 0, 2147483647);
|
alias MinstdRand = LinearCongruentialEngine!(uint, 48_271, 0, 2_147_483_647);
|
||||||
|
|
||||||
///
|
///
|
||||||
@safe unittest
|
@safe unittest
|
||||||
|
@ -828,7 +828,7 @@ LinearCongruentialEngine) would be the generator of choice.
|
||||||
alias Mt19937 = MersenneTwisterEngine!(uint, 32, 624, 397, 31,
|
alias Mt19937 = MersenneTwisterEngine!(uint, 32, 624, 397, 31,
|
||||||
0x9908b0df, 11, 0xffffffff, 7,
|
0x9908b0df, 11, 0xffffffff, 7,
|
||||||
0x9d2c5680, 15,
|
0x9d2c5680, 15,
|
||||||
0xefc60000, 18, 1812433253);
|
0xefc60000, 18, 1_812_433_253);
|
||||||
|
|
||||||
///
|
///
|
||||||
@safe unittest
|
@safe unittest
|
||||||
|
@ -869,7 +869,7 @@ period of 2 to the power of 19937.
|
||||||
alias Mt19937_64 = MersenneTwisterEngine!(ulong, 64, 312, 156, 31,
|
alias Mt19937_64 = MersenneTwisterEngine!(ulong, 64, 312, 156, 31,
|
||||||
0xb5026f5aa96619e9, 29, 0x5555555555555555, 17,
|
0xb5026f5aa96619e9, 29, 0x5555555555555555, 17,
|
||||||
0x71d67fffeda60000, 37,
|
0x71d67fffeda60000, 37,
|
||||||
0xfff7eee000000000, 43, 6364136223846793005);
|
0xfff7eee000000000, 43, 6_364_136_223_846_793_005);
|
||||||
|
|
||||||
///
|
///
|
||||||
@safe unittest
|
@safe unittest
|
||||||
|
@ -1014,18 +1014,18 @@ if (isUnsigned!UIntType)
|
||||||
enum size = bits / 32;
|
enum size = bits / 32;
|
||||||
|
|
||||||
static if (bits == 32)
|
static if (bits == 32)
|
||||||
UIntType[size] seeds_ = [2463534242];
|
UIntType[size] seeds_ = [2_463_534_242];
|
||||||
else static if (bits == 64)
|
else static if (bits == 64)
|
||||||
UIntType[size] seeds_ = [123456789, 362436069];
|
UIntType[size] seeds_ = [123_456_789, 362_436_069];
|
||||||
else static if (bits == 96)
|
else static if (bits == 96)
|
||||||
UIntType[size] seeds_ = [123456789, 362436069, 521288629];
|
UIntType[size] seeds_ = [123_456_789, 362_436_069, 521_288_629];
|
||||||
else static if (bits == 128)
|
else static if (bits == 128)
|
||||||
UIntType[size] seeds_ = [123456789, 362436069, 521288629, 88675123];
|
UIntType[size] seeds_ = [123_456_789, 362_436_069, 521_288_629, 88_675_123];
|
||||||
else static if (bits == 160)
|
else static if (bits == 160)
|
||||||
UIntType[size] seeds_ = [123456789, 362436069, 521288629, 88675123, 5783321];
|
UIntType[size] seeds_ = [123_456_789, 362_436_069, 521_288_629, 88_675_123, 5_783_321];
|
||||||
else static if (bits == 192)
|
else static if (bits == 192)
|
||||||
{
|
{
|
||||||
UIntType[size] seeds_ = [123456789, 362436069, 521288629, 88675123, 5783321, 6615241];
|
UIntType[size] seeds_ = [123_456_789, 362_436_069, 521_288_629, 88_675_123, 5_783_321, 6_615_241];
|
||||||
UIntType value_;
|
UIntType value_;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1052,7 +1052,7 @@ if (isUnsigned!UIntType)
|
||||||
{
|
{
|
||||||
// Initialization routine from MersenneTwisterEngine.
|
// Initialization routine from MersenneTwisterEngine.
|
||||||
foreach (i, e; seeds_)
|
foreach (i, e; seeds_)
|
||||||
seeds_[i] = x0 = cast(UIntType)(1812433253U * (x0 ^ (x0 >> 30)) + i + 1);
|
seeds_[i] = x0 = cast(UIntType)(1_812_433_253U * (x0 ^ (x0 >> 30)) + i + 1);
|
||||||
|
|
||||||
// All seeds must not be 0.
|
// All seeds must not be 0.
|
||||||
sanitizeSeeds(seeds_);
|
sanitizeSeeds(seeds_);
|
||||||
|
@ -1125,7 +1125,7 @@ if (isUnsigned!UIntType)
|
||||||
seeds_[2] = seeds_[3];
|
seeds_[2] = seeds_[3];
|
||||||
seeds_[3] = seeds_[4];
|
seeds_[3] = seeds_[4];
|
||||||
seeds_[4] = seeds_[4] ^ (seeds_[4] << c) ^ temp ^ (temp << b);
|
seeds_[4] = seeds_[4] ^ (seeds_[4] << c) ^ temp ^ (temp << b);
|
||||||
value_ = seeds_[4] + (seeds_[5] += 362437);
|
value_ = seeds_[4] + (seeds_[5] += 362_437);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -577,7 +577,7 @@ final class ZipArchive
|
||||||
throw new ZipException("zip files bigger than 4 GB are unsupported");
|
throw new ZipException("zip files bigger than 4 GB are unsupported");
|
||||||
|
|
||||||
// Find 'end record index' by searching backwards for signature
|
// Find 'end record index' by searching backwards for signature
|
||||||
iend = (data.length > 66000 ? to!uint(data.length - 66000) : 0);
|
iend = (data.length > 66_000 ? to!uint(data.length - 66_000) : 0);
|
||||||
for (i = to!uint(data.length) - 22; 1; i--)
|
for (i = to!uint(data.length) - 22; 1; i--)
|
||||||
{
|
{
|
||||||
if (i < iend || i >= data.length)
|
if (i < iend || i >= data.length)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue