modifs.mineures sans commentaires
This commit is contained in:
parent
4a0006724e
commit
1aee701fef
|
@ -3,6 +3,21 @@
|
||||||
<component name="PhpDockerContainerSettings">
|
<component name="PhpDockerContainerSettings">
|
||||||
<list>
|
<list>
|
||||||
<map>
|
<map>
|
||||||
|
<entry key="125ffb9d-fd5f-4e71-8182-94191665795a">
|
||||||
|
<value>
|
||||||
|
<DockerContainerSettings>
|
||||||
|
<option name="version" value="1" />
|
||||||
|
<option name="volumeBindings">
|
||||||
|
<list>
|
||||||
|
<DockerVolumeBindingImpl>
|
||||||
|
<option name="containerPath" value="/opt/project" />
|
||||||
|
<option name="hostPath" value="$PROJECT_DIR$" />
|
||||||
|
</DockerVolumeBindingImpl>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</DockerContainerSettings>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
<entry key="c4cf2564-ed91-488c-a93d-fe2daeae80db">
|
<entry key="c4cf2564-ed91-488c-a93d-fe2daeae80db">
|
||||||
<value>
|
<value>
|
||||||
<DockerContainerSettings>
|
<DockerContainerSettings>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
namespace nulib;
|
namespace nulib;
|
||||||
|
|
||||||
|
use nur\base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class str: gestion des chaines de caractère "simples"
|
* Class str: gestion des chaines de caractère "simples"
|
||||||
*/
|
*/
|
||||||
|
@ -66,6 +68,26 @@ class str {
|
||||||
else return rtrim($s);
|
else return rtrim($s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static final function left(?string $s, int $size): ?string {
|
||||||
|
if ($s === null) return null;
|
||||||
|
else return str_pad($s, $size);
|
||||||
|
}
|
||||||
|
|
||||||
|
static final function right(?string $s, int $size): ?string {
|
||||||
|
if ($s === null) return null;
|
||||||
|
else return str_pad($s, $size, " ", STR_PAD_LEFT);
|
||||||
|
}
|
||||||
|
|
||||||
|
static final function center(?string $s, int $size): ?string {
|
||||||
|
if ($s === null) return null;
|
||||||
|
else return str_pad($s, $size, " ", STR_PAD_BOTH);
|
||||||
|
}
|
||||||
|
|
||||||
|
static final function pad0(?string $s, int $size): ?string {
|
||||||
|
if ($s === null) return null;
|
||||||
|
else return str_pad($s, $size, "0", STR_PAD_LEFT);
|
||||||
|
}
|
||||||
|
|
||||||
static final function lower(?string $s): ?string {
|
static final function lower(?string $s): ?string {
|
||||||
if ($s === null) return null;
|
if ($s === null) return null;
|
||||||
else return strtolower($s);
|
else return strtolower($s);
|
||||||
|
|
Loading…
Reference in New Issue