Ferreteria/v0.6/clade/Data/Mem/QVar/Str/@removed

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | Data‎ | Mem‎ | QVar‎ | Str
Revision as of 14:16, 17 October 2025 by Woozle (talk | contribs) (Created page with "=={{fmt/date|2025|10|17}}== Commented out on {{fmt/date|2025|09|26}}: {{fmt/php/block|1= // 2025-09-26 now implemented in parent public function HasIt() : bool { return is_string($this->v); } public function SetIt(string $s) { $this->v = $s; } public function SetItNz(?string $s) { if (is_string($s)) { $this->SetIt($s); } else { $this->ZapIt(); } } public function &GetIt() : string { return $this->v; } public function GetItNz( strin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

2025-10-17

Commented out on 2025-09-26:

// 2025-09-26 now implemented in parent
    public function HasIt() : bool      { return is_string($this->v); }
    public function SetIt(string $s)    { $this->v = $s; }
    public function SetItNz(?string $s) { if (is_string($s)) { $this->SetIt($s); } else { $this->ZapIt(); } }
    public function &GetIt() : string   { return $this->v; }
    public function GetItNz(
      string $sDefault='',
      string $sPfx='',
      string $sSfx=''
      ) : string { return ($this->HasIt() ? ($sPfx.$this->v.$sSfx) : $sDefault); }
    public function RefIt(string &$s) : void { $this->v =& $s; }

2024-12-03

This was commented out earlier:

static public function FromNz(?string $v=NULL) : iStr {
        $oThis = new static;
        $oThis->SetItNz($v);
        return $oThis;
    }

Development version of SetIt():

public function SetIt($s) {
        if (is_string($s)) {
            $this->v = $s;
            $this->isSet = TRUE;
        } else {
            echo 'SetMe() expected string, got '.csTypes::DumpLine($s).'<br>';
            echo 'STACK DUMP: '.StackClass::FromCurrent()->Render();
        }
    }