Search

October 03
Learn »
...message {
    int msg_style;
    const(char) *msg;
}

struct pam_response {
    char *resp;
    int	resp_retcode...
September 30
Learn »
...str.to!string; // same as ss = str;

char[] ca = "abc";
ss = ca.to!string;	// same...
September 27
Learn »
...within the function, because doing math on char or ubyte results in int, the result...
September 27
Learn »
...make it operate on dchar instead of char), you won't end up with callers...
September 26
Learn »
```d
ubyte parseHex(immutable char ch) pure nothrow @safe @nogc {
	switch (ch) {
	case '0': .. case...
September 26
Learn »
...also use char below, ubyte is not a problem either:

```d
auto toHexDigit(char value...
September 26
Learn »
...a function like

```d
uint parseHex(in char ch) pure nothrow @safe @nogc {
	switch (ch...
September 24
General »
...sizeof.writeln; // 48
}

struct String
{
    immutable(char)[] str;
    size_t a, b, c...
September 22
Learn »
...if (code >= 0x7f)
    {
      return code.toChars!(16, char)
                 .format!"\\x%-(%c%)";
    }
    switch (code)
    {
      case '\0...
September 20
Learn »
...char) 0x41, cast(char) 0xFE, cast(char) 0x5A
steve's: cast(char) 0x41, cast(char...
1 2 3 4 5 6
Next ›   Last »