October 03 Learn » Wrapper for PAM | |||
|---|---|---|---|
| |||
...message {
int msg_style;
const(char) *msg;
}
struct pam_response {
char *resp;
int resp_retcode... | |||
September 30 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...str.to!string; // same as ss = str; char[] ca = "abc"; ss = ca.to!string; // same... | |||
September 27 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
...within the function, because doing math on char or ubyte results in int, the result... | |||
September 27 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
...make it operate on dchar instead of char), you won't end up with callers... | |||
September 26 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
```d
ubyte parseHex(immutable char ch) pure nothrow @safe @nogc {
switch (ch) {
case '0': .. case... | |||
September 26 Learn » Re: Integer precision of function return types | |||
|---|---|---|---|
| |||
...also use char below, ubyte is not a problem either: ```d auto toHexDigit(char value... | |||
September 26 Learn » Integer precision of function return types | |||
|---|---|---|---|
| |||
...a function like
```d
uint parseHex(in char ch) pure nothrow @safe @nogc {
switch (ch... | |||
September 24 General » Re: float.sizeof should be 4 | |||
|---|---|---|---|
| |||
...sizeof.writeln; // 48
}
struct String
{
immutable(char)[] str;
size_t a, b, c... | |||
September 22 Learn » Re: How to escape control characters? | |||
|---|---|---|---|
| |||
...if (code >= 0x7f)
{
return code.toChars!(16, char)
.format!"\\x%-(%c%)";
}
switch (code)
{
case '\0... | |||
September 20 Learn » Re: How to escape control characters? | |||
|---|---|---|---|
| |||
...char) 0x41, cast(char) 0xFE, cast(char) 0x5A steve's: cast(char) 0x41, cast(char... | |||
Copyright © 1999-2021 by the D Language Foundation