Browse Source

Refreshed the generated assets

tags/v1.2.0
Cédric Belin 1 week ago
parent
commit
726bcce11c
100 changed files with 352 additions and 352 deletions
  1. +1
    -1
      src/Array_hx.php
  2. +1
    -1
      src/Date.php
  3. +1
    -1
      src/DateTools.php
  4. +1
    -1
      src/EReg.php
  5. +1
    -1
      src/IntIterator.php
  6. +1
    -1
      src/Lambda.php
  7. +1
    -1
      src/Math.php
  8. +1
    -1
      src/Reflect.php
  9. +1
    -1
      src/Std.php
  10. +1
    -1
      src/StringBuf.php
  11. +1
    -1
      src/StringTools.php
  12. +1
    -1
      src/Sys.php
  13. +1
    -1
      src/Type.php
  14. +1
    -1
      src/ValueType.php
  15. +1
    -1
      src/Xml.php
  16. +1
    -1
      src/_EnumValue/EnumValue_Impl_.php
  17. +1
    -1
      src/_UInt/UInt_Impl_.php
  18. +8
    -8
      src/_UnicodeString/UnicodeString_Impl_.php
  19. +1
    -1
      src/_Xml/XmlType_Impl_.php
  20. +2
    -2
      src/haxe/EntryPoint.php
  21. +1
    -1
      src/haxe/Exception.php
  22. +1
    -1
      src/haxe/IMap.php
  23. +4
    -4
      src/haxe/Int64Helper.php
  24. +11
    -11
      src/haxe/Json.php
  25. +2
    -2
      src/haxe/Log.php
  26. +2
    -2
      src/haxe/MainEvent.php
  27. +2
    -2
      src/haxe/MainLoop.php
  28. +11
    -11
      src/haxe/NativeStackTrace.php
  29. +9
    -9
      src/haxe/Resource.php
  30. +15
    -15
      src/haxe/Serializer.php
  31. +1
    -1
      src/haxe/StackItem.php
  32. +5
    -5
      src/haxe/SysTools.php
  33. +14
    -14
      src/haxe/Template.php
  34. +4
    -4
      src/haxe/Timer.php
  35. +8
    -8
      src/haxe/Unserializer.php
  36. +1
    -1
      src/haxe/ValueException.php
  37. +2
    -2
      src/haxe/_CallStack/CallStack_Impl_.php
  38. +1
    -1
      src/haxe/_DynamicAccess/DynamicAccess_Impl_.php
  39. +1
    -1
      src/haxe/_EntryPoint/Lock.php
  40. +1
    -1
      src/haxe/_EntryPoint/Mutex.php
  41. +1
    -1
      src/haxe/_EntryPoint/Thread.php
  42. +2
    -2
      src/haxe/_Int32/Int32_Impl_.php
  43. +1
    -1
      src/haxe/_Int64/Int64_Impl_.php
  44. +1
    -1
      src/haxe/_Int64/___Int64.php
  45. +1
    -1
      src/haxe/_Template/TemplateExpr.php
  46. +1
    -1
      src/haxe/_Unserializer/DefaultResolver.php
  47. +1
    -1
      src/haxe/_Unserializer/NullResolver.php
  48. +13
    -13
      src/haxe/crypto/Base64.php
  49. +1
    -1
      src/haxe/ds/BalancedTree.php
  50. +1
    -1
      src/haxe/ds/Either.php
  51. +1
    -1
      src/haxe/ds/EnumValueMap.php
  52. +1
    -1
      src/haxe/ds/GenericCell.php
  53. +1
    -1
      src/haxe/ds/GenericStack.php
  54. +7
    -7
      src/haxe/ds/IntMap.php
  55. +1
    -1
      src/haxe/ds/List_hx.php
  56. +9
    -9
      src/haxe/ds/ObjectMap.php
  57. +1
    -1
      src/haxe/ds/Option.php
  58. +7
    -7
      src/haxe/ds/StringMap.php
  59. +1
    -1
      src/haxe/ds/TreeNode.php
  60. +1
    -1
      src/haxe/ds/WeakMap.php
  61. +1
    -1
      src/haxe/ds/_HashMap/HashMapData.php
  62. +4
    -4
      src/haxe/ds/_HashMap/HashMap_Impl_.php
  63. +1
    -1
      src/haxe/ds/_List/ListIterator.php
  64. +1
    -1
      src/haxe/ds/_List/ListKeyValueIterator.php
  65. +1
    -1
      src/haxe/ds/_List/ListNode.php
  66. +1
    -1
      src/haxe/ds/_Map/Map_Impl_.php
  67. +1
    -1
      src/haxe/ds/_ReadOnlyArray/ReadOnlyArray_Impl_.php
  68. +1
    -1
      src/haxe/ds/_Vector/PhpVectorData.php
  69. +2
    -2
      src/haxe/ds/_Vector/Vector_Impl_.php
  70. +20
    -20
      src/haxe/format/JsonPrinter.php
  71. +2
    -2
      src/haxe/http/HttpBase.php
  72. +50
    -50
      src/haxe/io/Bytes.php
  73. +10
    -10
      src/haxe/io/BytesBuffer.php
  74. +3
    -3
      src/haxe/io/BytesInput.php
  75. +4
    -4
      src/haxe/io/BytesOutput.php
  76. +1
    -1
      src/haxe/io/Encoding.php
  77. +1
    -1
      src/haxe/io/Eof.php
  78. +1
    -1
      src/haxe/io/Error.php
  79. +6
    -6
      src/haxe/io/FPHelper.php
  80. +10
    -10
      src/haxe/io/Input.php
  81. +4
    -4
      src/haxe/io/Output.php
  82. +14
    -14
      src/haxe/io/Path.php
  83. +8
    -8
      src/haxe/io/_BytesData/BytesDataAbstract_Impl_.php
  84. +1
    -1
      src/haxe/io/_BytesData/Container.php
  85. +1
    -1
      src/haxe/iterators/ArrayIterator.php
  86. +1
    -1
      src/haxe/iterators/ArrayKeyValueIterator.php
  87. +1
    -1
      src/haxe/iterators/DynamicAccessIterator.php
  88. +1
    -1
      src/haxe/iterators/DynamicAccessKeyValueIterator.php
  89. +2
    -2
      src/haxe/iterators/HashMapKeyValueIterator.php
  90. +1
    -1
      src/haxe/iterators/MapKeyValueIterator.php
  91. +1
    -1
      src/haxe/iterators/StringIterator.php
  92. +6
    -6
      src/haxe/iterators/StringIteratorUnicode.php
  93. +1
    -1
      src/haxe/iterators/StringKeyValueIterator.php
  94. +6
    -6
      src/haxe/iterators/StringKeyValueIteratorUnicode.php
  95. +1
    -1
      src/haxe/macro/Access.php
  96. +1
    -1
      src/haxe/macro/AnonStatus.php
  97. +1
    -1
      src/haxe/macro/Binop.php
  98. +1
    -1
      src/haxe/macro/ClassKind.php
  99. +1
    -1
      src/haxe/macro/ComplexType.php
  100. +1
    -1
      src/haxe/macro/Constant.php

+ 1
- 1
src/Array_hx.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \haxe\iterators\ArrayIterator as IteratorsArrayIterator;


+ 1
- 1
src/Date.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/DateTools.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\_Boot\HxAnon;


+ 1
- 1
src/EReg.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\_Boot\HxAnon;


+ 1
- 1
src/IntIterator.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/Lambda.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/Math.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/Reflect.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\_Boot\HxAnon;


+ 1
- 1
src/Std.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/StringBuf.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/StringTools.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/Sys.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \sys\io\FileInput;


+ 1
- 1
src/Type.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\_Boot\HxAnon;


+ 1
- 1
src/ValueType.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \php\Boot;


+ 1
- 1
src/Xml.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

use \haxe\iterators\ArrayIterator as IteratorsArrayIterator;


+ 1
- 1
src/_EnumValue/EnumValue_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace _EnumValue;


+ 1
- 1
src/_UInt/UInt_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace _UInt;


+ 8
- 8
src/_UnicodeString/UnicodeString_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace _UnicodeString;
@@ -61,7 +61,7 @@ final class UnicodeString_Impl_ {
$pos = 0;
$max = $b->length;
while ($pos < $max) {
$c = ord($data->s[$pos++]);
$c = \ord($data->s[$pos++]);
if ($c >= 128) {
if ($c < 194) {
return false;
@@ -69,7 +69,7 @@ final class UnicodeString_Impl_ {
if (($pos + 1) > $max) {
return false;
}
$c2 = ord($data->s[$pos++]);
$c2 = \ord($data->s[$pos++]);
if (($c2 < 128) || ($c2 > 191)) {
return false;
}
@@ -77,7 +77,7 @@ final class UnicodeString_Impl_ {
if (($pos + 2) > $max) {
return false;
}
$c21 = ord($data->s[$pos++]);
$c21 = \ord($data->s[$pos++]);
if ($c === 224) {
if (($c21 < 160) || ($c21 > 191)) {
return false;
@@ -85,7 +85,7 @@ final class UnicodeString_Impl_ {
} else if (($c21 < 128) || ($c21 > 191)) {
return false;
}
$c3 = ord($data->s[$pos++]);
$c3 = \ord($data->s[$pos++]);
if (($c3 < 128) || ($c3 > 191)) {
return false;
}
@@ -99,7 +99,7 @@ final class UnicodeString_Impl_ {
if (($pos + 3) > $max) {
return false;
}
$c22 = ord($data->s[$pos++]);
$c22 = \ord($data->s[$pos++]);
if ($c === 240) {
if (($c22 < 144) || ($c22 > 191)) {
return false;
@@ -111,11 +111,11 @@ final class UnicodeString_Impl_ {
} else if (($c22 < 128) || ($c22 > 191)) {
return false;
}
$c31 = ord($data->s[$pos++]);
$c31 = \ord($data->s[$pos++]);
if (($c31 < 128) || ($c31 > 191)) {
return false;
}
$c4 = ord($data->s[$pos++]);
$c4 = \ord($data->s[$pos++]);
if (($c4 < 128) || ($c4 > 191)) {
return false;
}


+ 1
- 1
src/_Xml/XmlType_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace _Xml;


+ 2
- 2
src/haxe/EntryPoint.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -54,7 +54,7 @@ class EntryPoint {
if ($_this->length > 0) {
$_this->length--;
}
$f = array_shift($_this->arr);
$f = \array_shift($_this->arr);
if ($f === null) {
break;
}


+ 1
- 1
src/haxe/Exception.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;


+ 1
- 1
src/haxe/IMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;


+ 4
- 4
src/haxe/Int64Helper.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -22,7 +22,7 @@ class Int64Helper {
* @return ___Int64
*/
public static function fromFloat ($f) {
if (is_nan($f) || !is_finite($f)) {
if (\is_nan($f) || !\is_finite($f)) {
throw Exception::thrown("Number is NaN or Infinite");
}
$noFractions = $f - fmod($f, 1);
@@ -80,8 +80,8 @@ class Int64Helper {
$current = new ___Int64(0, 0);
$multiplier = new ___Int64(0, 1);
$sIsNegative = false;
$s = trim($sParam);
if (mb_substr($s, 0, 1) === "-") {
$s = \trim($sParam);
if (\mb_substr($s, 0, 1) === "-") {
$sIsNegative = true;
$s = HxString::substring($s, 1, mb_strlen($s));
}


+ 11
- 11
src/haxe/Json.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -22,7 +22,7 @@ class Json {
* @return mixed
*/
public static function convertAfterDecode ($value) {
if (is_object($value)) {
if (\is_object($value)) {
$result = [];
$data = ((array)($value));
foreach ($data as $key => $value1) {
@@ -30,7 +30,7 @@ class Json {
}
return new HxAnon($result);
}
if (is_array($value)) {
if (\is_array($value)) {
$result = [];
foreach ($value as $key => $value1) {
$result[$key] = Json::convertAfterDecode($value1);
@@ -54,14 +54,14 @@ class Json {
}
return $result;
}
if (is_object($value)) {
if (\is_object($value)) {
$result = new HxAnon();
foreach ($value as $key => $value1) {
$result->{$key} = Json::convertBeforeEncode($value1);
}
return $result;
}
if (is_float($value) && !is_finite($value)) {
if (\is_float($value) && !\is_finite($value)) {
return null;
}
return $value;
@@ -88,9 +88,9 @@ class Json {
* @return mixed
*/
public static function phpJsonDecode ($json) {
$value = json_decode($json);
if (($value === null) && (json_last_error() !== JSON_ERROR_NONE)) {
throw Exception::thrown(json_last_error_msg());
$value = \json_decode($json);
if (($value === null) && (\json_last_error() !== \JSON_ERROR_NONE)) {
throw Exception::thrown(\json_last_error_msg());
}
return Json::convertAfterDecode($value);
}
@@ -106,9 +106,9 @@ class Json {
if ((null !== $replacer) || (null !== $space)) {
return JsonPrinter::print($value, $replacer, $space);
}
$json = json_encode(Json::convertBeforeEncode($value));
if (json_last_error() !== JSON_ERROR_NONE) {
throw Exception::thrown(json_last_error_msg());
$json = \json_encode(Json::convertBeforeEncode($value));
if (\json_last_error() !== \JSON_ERROR_NONE) {
throw Exception::thrown(\json_last_error_msg());
}
return $json;
}


+ 2
- 2
src/haxe/Log.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -65,7 +65,7 @@ class Log {


self::$trace = function ($v, $infos = null) {
echo((\Std::string(Log::formatOutput($v, $infos))??'null') . PHP_EOL);
echo((\Std::string(Log::formatOutput($v, $infos))??'null') . \PHP_EOL);
};
}
}


+ 2
- 2
src/haxe/MainEvent.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -67,7 +67,7 @@ class MainEvent {
* @return void
*/
public function delay ($t) {
$this->nextRun = ($t === null ? \Math::$NEGATIVE_INFINITY : microtime(true) + $t);
$this->nextRun = ($t === null ? \Math::$NEGATIVE_INFINITY : \microtime(true) + $t);
}

/**


+ 2
- 2
src/haxe/MainLoop.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -155,7 +155,7 @@ class MainLoop {
public static function tick () {
MainLoop::sortEvents();
$e = MainLoop::$pending;
$now = microtime(true);
$now = \microtime(true);
$wait = 1e9;
while ($e !== null) {
$next = $e->next;


+ 11
- 11
src/haxe/NativeStackTrace.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -28,7 +28,7 @@ class NativeStackTrace {
* @return mixed
*/
public static function callStack () {
return debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
return \debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
}

/**
@@ -44,7 +44,7 @@ class NativeStackTrace {
$thrownAt["file"] = $e->getFile();
$thrownAt["class"] = "";
$thrownAt["args"] = [];
array_unshift($nativeTrace, $thrownAt);
\array_unshift($nativeTrace, $thrownAt);
return $nativeTrace;
}

@@ -66,20 +66,20 @@ class NativeStackTrace {
*/
public static function saveStack ($e) {
$nativeTrace = $e->getTrace();
$currentTrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
$_g = -(count($currentTrace) - 1);
$currentTrace = \debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
$_g = -(\count($currentTrace) - 1);
while ($_g < 1) {
$i = $_g++;
$exceptionEntry = end($nativeTrace);
$exceptionEntry = \end($nativeTrace);
if (!isset($exceptionEntry["file"]) || !isset($currentTrace[-$i]["file"])) {
array_pop($nativeTrace);
\array_pop($nativeTrace);
} else if (Boot::equal($currentTrace[-$i]["file"], $exceptionEntry["file"]) && Boot::equal($currentTrace[-$i]["line"], $exceptionEntry["line"])) {
array_pop($nativeTrace);
\array_pop($nativeTrace);
} else {
break;
}
}
$count = count($nativeTrace);
$count = \count($nativeTrace);
$_g = 0;
while ($_g < $count) {
$this1 = [];
@@ -99,7 +99,7 @@ class NativeStackTrace {
$skip = 0;
}
$result = new \Array_hx();
$count = count($native);
$count = \count($native);
$_g = 0;
while ($_g < $count) {
$i = $_g++;
@@ -118,7 +118,7 @@ class NativeStackTrace {
}
if (HxString::indexOf($next["function"], "{closure}") >= 0) {
$item = StackItem::LocalFunction();
} else if ((strlen($next["class"]) > 0) && (strlen($next["function"]) > 0)) {
} else if ((\strlen($next["class"]) > 0) && (\strlen($next["function"]) > 0)) {
$cls = Boot::getClassName($next["class"]);
$item = StackItem::Method($cls, $next["function"]);
}


+ 9
- 9
src/haxe/Resource.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -39,8 +39,8 @@ class Resource {
*/
public static function getBytes ($name) {
$path = Resource::getPath($name);
clearstatcache(true, $path);
if (!file_exists($path)) {
\clearstatcache(true, $path);
if (!\file_exists($path)) {
return null;
} else {
return File::getBytes($path);
@@ -51,7 +51,7 @@ class Resource {
* @return string
*/
public static function getDir () {
return (dirname(__FILE__)??'null') . "/../.." . "/res";
return (\dirname(__FILE__)??'null') . "/../.." . "/res";
}

/**
@@ -73,8 +73,8 @@ class Resource {
*/
public static function getString ($name) {
$path = Resource::getPath($name);
clearstatcache(true, $path);
if (!file_exists($path)) {
\clearstatcache(true, $path);
if (!\file_exists($path)) {
return null;
} else {
return File::getContent($path);
@@ -93,18 +93,18 @@ class Resource {
if ($a->length > 0) {
$a->length--;
}
array_shift($a->arr);
\array_shift($a->arr);
}
if (($a->arr[0] ?? null) === "..") {
if ($a->length > 0) {
$a->length--;
}
array_shift($a->arr);
\array_shift($a->arr);
}
$result = [];
$data = $a->arr;
$_g_current = 0;
$_g_length = count($data);
$_g_length = \count($data);
while ($_g_current < $_g_length) {
$result[] = Path::unescape($data[$_g_current++]);
}


+ 15
- 15
src/haxe/Serializer.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -148,9 +148,9 @@ class Serializer {
$this->buf->add($v1);
} else if ($__hx__switch === 2) {
$v1 = $v;
if (is_nan($v1)) {
if (\is_nan($v1)) {
$this->buf->add("k");
} else if (!is_finite($v1)) {
} else if (!\is_finite($v1)) {
$this->buf->add(($v1 < 0 ? "m" : "p"));
} else {
$this->buf->add("d");
@@ -221,9 +221,9 @@ class Serializer {
} else if ($_g1 === Boot::getClass(IntMap::class)) {
$this->buf->add("q");
$v1 = $v;
$data = array_keys($v1->data);
$data = \array_keys($v1->data);
$_g_current = 0;
$_g_length = count($data);
$_g_length = \count($data);
while ($_g_current < $_g_length) {
$k = $data[$_g_current++];
$this->buf->add(":");
@@ -243,9 +243,9 @@ class Serializer {
} else if ($_g1 === Boot::getClass(ObjectMap::class)) {
$this->buf->add("M");
$v1 = $v;
$data = array_values($v1->_keys);
$data = \array_values($v1->_keys);
$_g_current = 0;
$_g_length = count($data);
$_g_length = \count($data);
while ($_g_current < $_g_length) {
$k = $data[$_g_current++];
$this->serialize($k);
@@ -255,9 +255,9 @@ class Serializer {
} else if ($_g1 === Boot::getClass(StringMap::class)) {
$this->buf->add("b");
$v1 = $v;
$data = array_values(array_map("strval", array_keys($v1->data)));
$data = \array_values(\array_map("strval", \array_keys($v1->data)));
$_g_current = 0;
$_g_length = count($data);
$_g_length = \count($data);
while ($_g_current < $_g_length) {
$k = $data[$_g_current++];
$this->serializeString($k);
@@ -265,8 +265,8 @@ class Serializer {
}
$this->buf->add("h");
} else if ($_g1 === Boot::getClass(Bytes::class)) {
$chars = base64_encode($v->b->s);
$chars = strtr($chars, "+/", "%:");
$chars = \base64_encode($v->b->s);
$chars = \strtr($chars, "+/", "%:");
$this->buf->add("s");
$this->buf->add(mb_strlen($chars));
$this->buf->add(":");
@@ -277,9 +277,9 @@ class Serializer {
if ($_this->length > 0) {
$_this->length--;
}
array_pop($_this->arr);
\array_pop($_this->arr);
}
if (method_exists($v, "hxSerialize")) {
if (\method_exists($v, "hxSerialize")) {
$this->buf->add("C");
$this->serializeString(\Type::getClassName($_g1));
if ($this->useCache) {
@@ -307,7 +307,7 @@ class Serializer {
if ($_this->length > 0) {
$_this->length--;
}
array_pop($_this->arr);
\array_pop($_this->arr);
}
$this->buf->add(($this->useEnumIndex ? "j" : "w"));
$this->serializeString(\Type::getEnumName($_g->params[0]));
@@ -399,7 +399,7 @@ class Serializer {
}
$this->shash->data[$s] = $this->scount++;
$this->buf->add("y");
$s = rawurlencode($s);
$s = \rawurlencode($s);
$this->buf->add(mb_strlen($s));
$this->buf->add(":");
$this->buf->add($s);


+ 1
- 1
src/haxe/StackItem.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;


+ 5
- 5
src/haxe/SysTools.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -68,7 +68,7 @@ class SysTools {
$result->add($bs_buf->b);
$bs_buf = new \StringBuf();
}
$result->b = ($result->b??'null') . (mb_chr($_g2)??'null');
$result->b = ($result->b??'null') . (\mb_chr($_g2)??'null');
} else {
if ($_g2 === 34) {
$bs = $bs_buf->b;
@@ -83,7 +83,7 @@ class SysTools {
$result->add($bs_buf->b);
$bs_buf = new \StringBuf();
}
$result->b = ($result->b??'null') . (mb_chr($_g2)??'null');
$result->b = ($result->b??'null') . (\mb_chr($_g2)??'null');
}
}
}
@@ -101,9 +101,9 @@ class SysTools {
while ($_g < $_g1) {
$c = HxString::charCodeAt($argument, $_g++);
if (SysTools::$winMetaCharacters->indexOf($c) >= 0) {
$result->b = ($result->b??'null') . (mb_chr(94)??'null');
$result->b = ($result->b??'null') . (\mb_chr(94)??'null');
}
$result->b = ($result->b??'null') . (mb_chr($c)??'null');
$result->b = ($result->b??'null') . (\mb_chr($c)??'null');
}
return $result->b;
} else {


+ 14
- 14
src/haxe/Template.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -127,7 +127,7 @@ class Template {
Template::$expr_trim->match($v);
$v = Template::$expr_trim->matched(1);
if (HxString::charCodeAt($v, 0) === 34) {
$str = mb_substr($v, 1, mb_strlen($v) - 2);
$str = \mb_substr($v, 1, mb_strlen($v) - 2);
return function () use (&$str) {
return $str;
};
@@ -312,9 +312,9 @@ class Template {
$kwdEnd = function ($kwd) use (&$p) {
$pos = -1;
$length = mb_strlen($kwd);
if (mb_substr($p, 0, $length) === $kwd) {
if (\mb_substr($p, 0, $length) === $kwd) {
$pos = $length;
$s = mb_substr($p, $length, null);
$s = \mb_substr($p, $length, null);
$_g_offset = 0;
while ($_g_offset < mb_strlen($s)) {
if (\StringTools::fastCodeAt($s, $_g_offset++) === 32) {
@@ -328,7 +328,7 @@ class Template {
};
$pos = $kwdEnd("if");
if ($pos > 0) {
$p = mb_substr($p, $pos, mb_strlen($p) - $pos);
$p = \mb_substr($p, $pos, mb_strlen($p) - $pos);
$e = $this->parseExpr($p);
$eif = $this->parseBlock($tokens);
$t = $tokens->first();
@@ -347,14 +347,14 @@ class Template {
throw Exception::thrown("Unclosed 'else'");
}
} else {
$t->p = mb_substr($t->p, 4, mb_strlen($t->p) - 4);
$t->p = \mb_substr($t->p, 4, mb_strlen($t->p) - 4);
$eelse = $this->parse($tokens);
}
return TemplateExpr::OpIf($e, $eif, $eelse);
}
$pos = $kwdEnd("foreach");
if ($pos >= 0) {
$p = mb_substr($p, $pos, mb_strlen($p) - $pos);
$p = \mb_substr($p, $pos, mb_strlen($p) - $pos);
$e = $this->parseExpr($p);
$efor = $this->parseBlock($tokens);
$t = $tokens->pop();
@@ -381,7 +381,7 @@ class Template {
if ($t === null) {
break;
}
if (!$t->s && (($t->p === "end") || ($t->p === "else") || (mb_substr($t->p, 0, 7) === "elseif "))) {
if (!$t->s && (($t->p === "end") || ($t->p === "else") || (\mb_substr($t->p, 0, 7) === "elseif "))) {
break;
}
$l->add($this->parse($tokens));
@@ -404,7 +404,7 @@ class Template {
$p = Template::$expr_splitter->matchedPos();
if ($p->pos !== 0) {
$l->add(new HxAnon([
"p" => mb_substr($data, 0, $p->pos),
"p" => \mb_substr($data, 0, $p->pos),
"s" => true,
]));
}
@@ -422,7 +422,7 @@ class Template {
$_g1_key = $_g_offset;
if (\StringTools::fastCodeAt($_g_s, $_g_offset++) !== 32) {
$l->add(new HxAnon([
"p" => mb_substr($data, $_g1_key, null),
"p" => \mb_substr($data, $_g1_key, null),
"s" => true,
]));
break;
@@ -465,14 +465,14 @@ class Template {
$p = Template::$splitter->matchedPos();
if ($p->pos > 0) {
$tokens->add(new HxAnon([
"p" => mb_substr($data, 0, $p->pos),
"p" => \mb_substr($data, 0, $p->pos),
"s" => true,
"l" => null,
]));
}
if (HxString::charCodeAt($data, $p->pos) === 58) {
$tokens->add(new HxAnon([
"p" => mb_substr($data, $p->pos + 2, $p->len - 4),
"p" => \mb_substr($data, $p->pos + 2, $p->len - 4),
"s" => false,
"l" => null,
]));
@@ -500,7 +500,7 @@ class Template {
$params->arr[$params->length++] = $part;
$part = "";
} else {
$part = ($part??'null') . (mb_chr($c)??'null');
$part = ($part??'null') . (\mb_chr($c)??'null');
}
}
$params->arr[$params->length++] = $part;
@@ -509,7 +509,7 @@ class Template {
"s" => false,
"l" => $params,
]));
$data = mb_substr($data, $parp, mb_strlen($data) - $parp);
$data = \mb_substr($data, $parp, mb_strlen($data) - $parp);
}
if (mb_strlen($data) > 0) {
$tokens->add(new HxAnon([


+ 4
- 4
src/haxe/Timer.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -73,9 +73,9 @@ class Timer {
* @return mixed
*/
public static function measure ($f, $pos = null) {
$t0 = microtime(true);
$t0 = \microtime(true);
$r = $f();
(Log::$trace)((microtime(true) - $t0) . "s", $pos);
(Log::$trace)((\microtime(true) - $t0) . "s", $pos);
return $r;
}

@@ -87,7 +87,7 @@ class Timer {
* @return float
*/
public static function stamp () {
return microtime(true);
return \microtime(true);
}

/**


+ 8
- 8
src/haxe/Unserializer.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;
@@ -197,7 +197,7 @@ class Unserializer {
break;
}
}
return \Std::parseFloat(mb_substr($this->buf, $p1, $this->pos - $p1));
return \Std::parseFloat(\mb_substr($this->buf, $p1, $this->pos - $p1));
}

/**
@@ -398,8 +398,8 @@ class Unserializer {
if ((\StringTools::fastCodeAt($this->buf, $this->pos++) !== 58) || (($this->length - $this->pos) < $len)) {
throw Exception::thrown("Invalid bytes length");
}
$b = new Container(base64_decode(strtr(mb_substr($buf, $this->pos, $len), "%:", "+/")));
$bytes = new Bytes(strlen($b->s), $b);
$b = new Container(\base64_decode(\strtr(\mb_substr($buf, $this->pos, $len), "%:", "+/")));
$bytes = new Bytes(\strlen($b->s), $b);
$this->pos += $len;
$_this = $this->cache;
$_this->arr[$_this->length++] = $bytes;
@@ -409,7 +409,7 @@ class Unserializer {
} else if ($__hx__switch === 118) {
$d = null;
if ((\StringTools::fastCodeAt($this->buf, $this->pos) >= 48) && (\StringTools::fastCodeAt($this->buf, $this->pos) <= 57) && (\StringTools::fastCodeAt($this->buf, $this->pos + 1) >= 48) && (\StringTools::fastCodeAt($this->buf, $this->pos + 1) <= 57) && (\StringTools::fastCodeAt($this->buf, $this->pos + 2) >= 48) && (\StringTools::fastCodeAt($this->buf, $this->pos + 2) <= 57) && (\StringTools::fastCodeAt($this->buf, $this->pos + 3) >= 48) && (\StringTools::fastCodeAt($this->buf, $this->pos + 3) <= 57) && (\StringTools::fastCodeAt($this->buf, $this->pos + 4) === 45)) {
$d = \Date::fromString(mb_substr($this->buf, $this->pos, 19));
$d = \Date::fromString(\mb_substr($this->buf, $this->pos, 19));
$this->pos += 19;
} else {
$d = \Date::fromTime($this->readFloat());
@@ -434,9 +434,9 @@ class Unserializer {
if ((\StringTools::fastCodeAt($this->buf, $this->pos++) !== 58) || (($this->length - $this->pos) < $len)) {
throw Exception::thrown("Invalid string length");
}
$s = mb_substr($this->buf, $this->pos, $len);
$s = \mb_substr($this->buf, $this->pos, $len);
$this->pos += $len;
$s = urldecode($s);
$s = \urldecode($s);
$_this = $this->scache;
$_this->arr[$_this->length++] = $s;
return $s;
@@ -446,7 +446,7 @@ class Unserializer {
}
$this->pos--;
$index = $this->pos;
throw Exception::thrown("Invalid char " . ((($index < 0 ? "" : mb_substr($this->buf, $index, 1)))??'null') . " at position " . ($this->pos??'null'));
throw Exception::thrown("Invalid char " . ((($index < 0 ? "" : \mb_substr($this->buf, $index, 1)))??'null') . " at position " . ($this->pos??'null'));
}

/**


+ 1
- 1
src/haxe/ValueException.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe;


+ 2
- 2
src/haxe/_CallStack/CallStack_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_CallStack;
@@ -27,7 +27,7 @@ final class CallStack_Impl_ {
* @return \Array_hx
*/
public static function callStack () {
return NativeStackTrace::toHaxe(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
return NativeStackTrace::toHaxe(\debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS));
}

/**


+ 1
- 1
src/haxe/_DynamicAccess/DynamicAccess_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_DynamicAccess;


+ 1
- 1
src/haxe/_EntryPoint/Lock.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_EntryPoint;


+ 1
- 1
src/haxe/_EntryPoint/Mutex.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_EntryPoint;


+ 1
- 1
src/haxe/_EntryPoint/Thread.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_EntryPoint;


+ 2
- 2
src/haxe/_Int32/Int32_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Int32;
@@ -295,7 +295,7 @@ final class Int32_Impl_ {
$called = true;


self::$extraBits = PHP_INT_SIZE * 8 - 32;
self::$extraBits = \PHP_INT_SIZE * 8 - 32;
}
}



+ 1
- 1
src/haxe/_Int64/Int64_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Int64;


+ 1
- 1
src/haxe/_Int64/___Int64.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Int64;


+ 1
- 1
src/haxe/_Template/TemplateExpr.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Template;


+ 1
- 1
src/haxe/_Unserializer/DefaultResolver.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Unserializer;


+ 1
- 1
src/haxe/_Unserializer/NullResolver.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\_Unserializer;


+ 13
- 13
src/haxe/crypto/Base64.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\crypto;
@@ -46,7 +46,7 @@ class Base64 {
$complement = true;
}
if (!$complement) {
$__hx__switch = (strlen($str) % 3);
$__hx__switch = (\strlen($str) % 3);
if ($__hx__switch === 1) {
$str = ($str??'null') . "==";
} else if ($__hx__switch === 2) {
@@ -54,8 +54,8 @@ class Base64 {
} else {
}
}
$s = base64_decode($str, true);
$tmp = strlen($s);
$s = \base64_decode($str, true);
$tmp = \strlen($s);
return new Bytes($tmp, new Container($s));
}

@@ -69,11 +69,11 @@ class Base64 {
if ($complement === null) {
$complement = true;
}
$result = base64_encode($bytes->toString());
$result = \base64_encode($bytes->toString());
if ($complement) {
return $result;
} else {
return rtrim($result, "=");
return \rtrim($result, "=");
}
}

@@ -88,7 +88,7 @@ class Base64 {
$complement = true;
}
if (!$complement) {
$__hx__switch = (strlen($str) % 3);
$__hx__switch = (\strlen($str) % 3);
if ($__hx__switch === 1) {
$str = ($str??'null') . "==";
} else if ($__hx__switch === 2) {
@@ -96,8 +96,8 @@ class Base64 {
} else {
}
}
$s = base64_decode(str_replace(Base64::$URL_62_63, Base64::$NORMAL_62_63, $str), true);
$tmp = strlen($s);
$s = \base64_decode(\str_replace(Base64::$URL_62_63, Base64::$NORMAL_62_63, $str), true);
$tmp = \strlen($s);
return new Bytes($tmp, new Container($s));
}

@@ -111,11 +111,11 @@ class Base64 {
if ($complement === null) {
$complement = true;
}
$result = str_replace(Base64::$NORMAL_62_63, Base64::$URL_62_63, base64_encode($bytes->toString()));
$result = \str_replace(Base64::$NORMAL_62_63, Base64::$URL_62_63, \base64_encode($bytes->toString()));
if ($complement) {
return $result;
} else {
return rtrim($result, "=");
return \rtrim($result, "=");
}
}

@@ -131,10 +131,10 @@ class Base64 {


$s = Base64::$CHARS;
$tmp = strlen($s);
$tmp = \strlen($s);
self::$BYTES = new Bytes($tmp, new Container($s));
$s = Base64::$URL_CHARS;
$tmp = strlen($s);
$tmp = \strlen($s);
self::$URL_BYTES = new Bytes($tmp, new Container($s));
self::$NORMAL_62_63 = ["+", "/"];
self::$URL_62_63 = ["-", "_"];


+ 1
- 1
src/haxe/ds/BalancedTree.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/Either.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/EnumValueMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/GenericCell.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/GenericStack.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 7
- 7
src/haxe/ds/IntMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;
@@ -56,7 +56,7 @@ class IntMap implements IMap {
* @return bool
*/
public function exists ($key) {
return array_key_exists($key, $this->data);
return \array_key_exists($key, $this->data);
}

/**
@@ -78,7 +78,7 @@ class IntMap implements IMap {
* @return object
*/
public function iterator () {
return new NativeIndexedArrayIterator(array_values($this->data));
return new NativeIndexedArrayIterator(\array_values($this->data));
}

/**
@@ -98,7 +98,7 @@ class IntMap implements IMap {
* @return object
*/
public function keys () {
return new NativeIndexedArrayIterator(array_keys($this->data));
return new NativeIndexedArrayIterator(\array_keys($this->data));
}

/**
@@ -109,7 +109,7 @@ class IntMap implements IMap {
* @return bool
*/
public function remove ($key) {
if (array_key_exists($key, $this->data)) {
if (\array_key_exists($key, $this->data)) {
unset($this->data[$key]);
return true;
}
@@ -137,9 +137,9 @@ class IntMap implements IMap {
$parts = [];
$collection = $this->data;
foreach ($collection as $key => $value) {
array_push($parts, "" . ($key??'null') . " => " . (\Std::string($value)??'null'));
\array_push($parts, "" . ($key??'null') . " => " . (\Std::string($value)??'null'));
}
return "{" . (implode(", ", $parts)??'null') . "}";
return "{" . (\implode(", ", $parts)??'null') . "}";
}

public function __toString() {


+ 1
- 1
src/haxe/ds/List_hx.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 9
- 9
src/haxe/ds/ObjectMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;
@@ -64,7 +64,7 @@ class ObjectMap implements IMap {
* @return bool
*/
public function exists ($key) {
return array_key_exists(spl_object_hash($key), $this->_values);
return \array_key_exists(\spl_object_hash($key), $this->_values);
}

/**
@@ -75,7 +75,7 @@ class ObjectMap implements IMap {
* @return mixed
*/
public function get ($key) {
$id = spl_object_hash($key);
$id = \spl_object_hash($key);
if (isset($this->_values[$id])) {
return $this->_values[$id];
} else {
@@ -91,7 +91,7 @@ class ObjectMap implements IMap {
* @return object
*/
public function iterator () {
return new NativeIndexedArrayIterator(array_values($this->_values));
return new NativeIndexedArrayIterator(\array_values($this->_values));
}

/**
@@ -111,7 +111,7 @@ class ObjectMap implements IMap {
* @return object
*/
public function keys () {
return new NativeIndexedArrayIterator(array_values($this->_keys));
return new NativeIndexedArrayIterator(\array_values($this->_keys));
}

/**
@@ -122,8 +122,8 @@ class ObjectMap implements IMap {
* @return bool
*/
public function remove ($key) {
$id = spl_object_hash($key);
if (array_key_exists($id, $this->_values)) {
$id = \spl_object_hash($key);
if (\array_key_exists($id, $this->_values)) {
unset($this->_keys[$id], $this->_values[$id]);
return true;
} else {
@@ -140,7 +140,7 @@ class ObjectMap implements IMap {
* @return void
*/
public function set ($key, $value) {
$id = spl_object_hash($key);
$id = \spl_object_hash($key);
$this->_keys[$id] = $key;
$this->_values[$id] = $value;
}
@@ -152,7 +152,7 @@ class ObjectMap implements IMap {
*/
public function toString () {
$s = "{";
$it = new NativeIndexedArrayIterator(array_values($this->_keys));
$it = new NativeIndexedArrayIterator(\array_values($this->_keys));
while ($it->hasNext()) {
$i = $it->next();
$s = ($s??'null') . (\Std::string($i)??'null');


+ 1
- 1
src/haxe/ds/Option.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 7
- 7
src/haxe/ds/StringMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;
@@ -56,7 +56,7 @@ class StringMap implements IMap {
* @return bool
*/
public function exists ($key) {
return array_key_exists($key, $this->data);
return \array_key_exists($key, $this->data);
}

/**
@@ -78,7 +78,7 @@ class StringMap implements IMap {
* @return object
*/
public function iterator () {
return new NativeIndexedArrayIterator(array_values($this->data));
return new NativeIndexedArrayIterator(\array_values($this->data));
}

/**
@@ -98,7 +98,7 @@ class StringMap implements IMap {
* @return object
*/
public function keys () {
return new NativeIndexedArrayIterator(array_values(array_map("strval", array_keys($this->data))));
return new NativeIndexedArrayIterator(\array_values(\array_map("strval", \array_keys($this->data))));
}

/**
@@ -109,7 +109,7 @@ class StringMap implements IMap {
* @return bool
*/
public function remove ($key) {
if (array_key_exists($key, $this->data)) {
if (\array_key_exists($key, $this->data)) {
unset($this->data[$key]);
return true;
} else {
@@ -138,9 +138,9 @@ class StringMap implements IMap {
$parts = [];
$collection = $this->data;
foreach ($collection as $key => $value) {
array_push($parts, "" . ($key??'null') . " => " . (\Std::string($value)??'null'));
\array_push($parts, "" . ($key??'null') . " => " . (\Std::string($value)??'null'));
}
return "{" . (implode(", ", $parts)??'null') . "}";
return "{" . (\implode(", ", $parts)??'null') . "}";
}

public function __toString() {


+ 1
- 1
src/haxe/ds/TreeNode.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/WeakMap.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds;


+ 1
- 1
src/haxe/ds/_HashMap/HashMapData.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_HashMap;


+ 4
- 4
src/haxe/ds/_HashMap/HashMap_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_HashMap;
@@ -55,7 +55,7 @@ final class HashMap_Impl_ {
*/
public static function exists ($this1, $k) {
$_this = $this1->values;
return array_key_exists($k->hashCode(), $_this->data);
return \array_key_exists($k->hashCode(), $_this->data);
}

/**
@@ -80,7 +80,7 @@ final class HashMap_Impl_ {
* @return object
*/
public static function iterator ($this1) {
return new NativeIndexedArrayIterator(array_values($this1->values->data));
return new NativeIndexedArrayIterator(\array_values($this1->values->data));
}

/**
@@ -102,7 +102,7 @@ final class HashMap_Impl_ {
* @return object
*/
public static function keys ($this1) {
return new NativeIndexedArrayIterator(array_values($this1->keys->data));
return new NativeIndexedArrayIterator(\array_values($this1->keys->data));
}

/**


+ 1
- 1
src/haxe/ds/_List/ListIterator.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_List;


+ 1
- 1
src/haxe/ds/_List/ListKeyValueIterator.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_List;


+ 1
- 1
src/haxe/ds/_List/ListNode.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_List;


+ 1
- 1
src/haxe/ds/_Map/Map_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_Map;


+ 1
- 1
src/haxe/ds/_ReadOnlyArray/ReadOnlyArray_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_ReadOnlyArray;


+ 1
- 1
src/haxe/ds/_Vector/PhpVectorData.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_Vector;


+ 2
- 2
src/haxe/ds/_Vector/Vector_Impl_.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\ds\_Vector;
@@ -163,7 +163,7 @@ final class Vector_Impl_ {
* @return void
*/
public static function sort ($this1, $f) {
usort($this1->data, $f);
\usort($this1->data, $f);
}

/**


+ 20
- 20
src/haxe/format/JsonPrinter.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\format;
@@ -89,7 +89,7 @@ class JsonPrinter {
*/
public function fieldsString ($v, $fields) {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(123)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(123)??'null');
$len = $fields->length;
$last = $len - 1;
$first = true;
@@ -106,11 +106,11 @@ class JsonPrinter {
$first = false;
} else {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(44)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(44)??'null');
}
if ($this->pretty) {
$_this1 = $this->buf;
$_this1->b = ($_this1->b??'null') . (mb_chr(10)??'null');
$_this1->b = ($_this1->b??'null') . (\mb_chr(10)??'null');
}
if ($this->pretty) {
$v1 = \StringTools::lpad("", $this->indent, $this->nind * mb_strlen($this->indent));
@@ -118,17 +118,17 @@ class JsonPrinter {
}
$this->quote($f);
$_this2 = $this->buf;
$_this2->b = ($_this2->b??'null') . (mb_chr(58)??'null');
$_this2->b = ($_this2->b??'null') . (\mb_chr(58)??'null');
if ($this->pretty) {
$_this3 = $this->buf;
$_this3->b = ($_this3->b??'null') . (mb_chr(32)??'null');
$_this3->b = ($_this3->b??'null') . (\mb_chr(32)??'null');
}
$this->write($f, $value);
if ($i === $last) {
$this->nind--;
if ($this->pretty) {
$_this4 = $this->buf;
$_this4->b = ($_this4->b??'null') . (mb_chr(10)??'null');
$_this4->b = ($_this4->b??'null') . (\mb_chr(10)??'null');
}
if ($this->pretty) {
$v2 = \StringTools::lpad("", $this->indent, $this->nind * mb_strlen($this->indent));
@@ -137,7 +137,7 @@ class JsonPrinter {
}
}
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(125)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(125)??'null');
}

/**
@@ -156,7 +156,7 @@ class JsonPrinter {
public function newl () {
if ($this->pretty) {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(10)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(10)??'null');
}
}

@@ -176,7 +176,7 @@ class JsonPrinter {
*/
public function quote ($s) {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(34)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(34)??'null');
$i = 0;
while (true) {
$c = \StringTools::fastCodeAt($s, $i++);
@@ -199,11 +199,11 @@ class JsonPrinter {
$this->buf->add("\\\\");
} else {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr($c)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr($c)??'null');
}
}
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(34)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(34)??'null');
}

/**
@@ -223,7 +223,7 @@ class JsonPrinter {
} else if ($__hx__switch === 1) {
$this->buf->add($v);
} else if ($__hx__switch === 2) {
$v1 = (is_finite($v) ? \Std::string($v) : "null");
$v1 = (\is_finite($v) ? \Std::string($v) : "null");
$this->buf->add($v1);
} else if ($__hx__switch === 3) {
$this->buf->add(($v ? "true" : "false"));
@@ -238,7 +238,7 @@ class JsonPrinter {
} else if ($_g1 === Boot::getClass(\Array_hx::class)) {
$v1 = $v;
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(91)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(91)??'null');
$len = $v1->length;
$last = $len - 1;
$_g = 0;
@@ -246,13 +246,13 @@ class JsonPrinter {
$i = $_g++;
if ($i > 0) {
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(44)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(44)??'null');
} else {
$this->nind++;
}
if ($this->pretty) {
$_this1 = $this->buf;
$_this1->b = ($_this1->b??'null') . (mb_chr(10)??'null');
$_this1->b = ($_this1->b??'null') . (\mb_chr(10)??'null');
}
if ($this->pretty) {
$v2 = \StringTools::lpad("", $this->indent, $this->nind * mb_strlen($this->indent));
@@ -263,7 +263,7 @@ class JsonPrinter {
$this->nind--;
if ($this->pretty) {
$_this2 = $this->buf;
$_this2->b = ($_this2->b??'null') . (mb_chr(10)??'null');
$_this2->b = ($_this2->b??'null') . (\mb_chr(10)??'null');
}
if ($this->pretty) {
$v3 = \StringTools::lpad("", $this->indent, $this->nind * mb_strlen($this->indent));
@@ -272,13 +272,13 @@ class JsonPrinter {
}
}
$_this = $this->buf;
$_this->b = ($_this->b??'null') . (mb_chr(93)??'null');
$_this->b = ($_this->b??'null') . (\mb_chr(93)??'null');
} else if ($_g1 === Boot::getClass(StringMap::class)) {
$v1 = $v;
$o = new HxAnon();
$data = array_values(array_map("strval", array_keys($v1->data)));
$data = \array_values(\array_map("strval", \array_keys($v1->data)));
$_g_current = 0;
$_g_length = count($data);
$_g_length = \count($data);
while ($_g_current < $_g_length) {
$k = $data[$_g_current++];
\Reflect::setField($o, $k, ($v1->data[$k] ?? null));


+ 2
- 2
src/haxe/http/HttpBase.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\http;
@@ -163,7 +163,7 @@ class HttpBase {
if (($len < 0) || ($len > $_this->length)) {
throw Exception::thrown(Error::OutsideBounds());
} else {
$tmp = substr($_this->b->s, 0, $len);
$tmp = \substr($_this->b->s, 0, $len);
}
$this->responseAsString = $tmp;
}


+ 50
- 50
src/haxe/io/Bytes.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Generated by Haxe 4.1.2
* Generated by Haxe 4.1.3
*/

namespace haxe\io;
@@ -26,7 +26,7 @@ class Bytes {
* @return Bytes
*/
public static function alloc ($length) {
return new Bytes($length, new Container(str_repeat(chr(0), $length)));
return new Bytes($length, new Container(\str_repeat(\chr(0), $length)));
}

/**
@@ -36,7 +36,7 @@ class Bytes {
* @return int
*/
public static function fastGet ($b, $pos) {
return ord($b->s[$pos]);
return \ord($b->s[$pos]);
}

/**