Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 17bd41d

Browse files
committed
Move to Hoa\Ustring.
1 parent a903f33 commit 17bd41d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Visitor/Isotropic.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
use Hoa\Math;
4040
use Hoa\Regex;
41-
use Hoa\String;
41+
use Hoa\Ustring;
4242
use Hoa\Visitor;
4343

4444
/**
@@ -170,7 +170,7 @@ public function visit(
170170
$c = [];
171171

172172
foreach ($element->getChildren() as $child) {
173-
$c[String::toCode(
173+
$c[Ustring::toCode(
174174
$child->accept($this, $handle, $eldnah)
175175
)] = true;
176176
}
@@ -180,18 +180,18 @@ public function visit(
180180
$i = $this->_sampler->getInteger(32, 126);
181181
} while (isset($c[$i]));
182182

183-
return String::fromCode($i);
183+
return Ustring::fromCode($i);
184184

185185
case '#range':
186186
$out = null;
187187
$left = $element->getChild(0)->accept($this, $handle, $eldnah);
188188
$right = $element->getChild(1)->accept($this, $handle, $eldnah);
189189

190190
return
191-
String::fromCode(
191+
Ustring::fromCode(
192192
$this->_sampler->getInteger(
193-
String::toCode($left),
194-
String::toCode($right)
193+
Ustring::toCode($left),
194+
Ustring::toCode($right)
195195
)
196196
);
197197

@@ -223,7 +223,7 @@ public function visit(
223223

224224
default:
225225
return
226-
String::fromCode(
226+
Ustring::fromCode(
227227
intval(
228228
substr($value, 1)
229229
)
@@ -239,12 +239,12 @@ public function visit(
239239
case 'x':
240240
$value = trim($value, 'x{}');
241241

242-
return String::fromCode(
242+
return Ustring::fromCode(
243243
hexdec($value)
244244
);
245245

246246
default:
247-
return String::fromCode(octdec($value));
247+
return Ustring::fromCode(octdec($value));
248248
}
249249

250250
break;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require": {
2424
"hoa/core" : "~2.0",
2525
"hoa/math" : "~0.0",
26-
"hoa/string" : "~2.0",
26+
"hoa/ustring" : "~3.0",
2727
"hoa/visitor" : "~1.0"
2828
},
2929
"autoload": {

0 commit comments

Comments
 (0)