Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

StringWrapperInterface.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 3.01 KiB


 001  <?php
 002  /**
 003   * Zend Framework (http://framework.zend.com/)
 004   *
 005   * @link      http://github.com/zendframework/zf2 for the canonical source repository
 006   * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 007   * @license   http://framework.zend.com/license/new-bsd New BSD License
 008   */
 009   
 010  namespace Zend\Stdlib\StringWrapper;
 011   
 012  interface StringWrapperInterface
 013  {
 014      /**
 015       * Check if the given character encoding is supported by this wrapper
 016       * and the character encoding to convert to is also supported.
 017       *
 018       * @param string      $encoding
 019       * @param string|null $convertEncoding
 020       */
 021      public static function isSupported($encoding, $convertEncoding = null);
 022   
 023      /**
 024       * Get a list of supported character encodings
 025       *
 026       * @return string[]
 027       */
 028      public static function getSupportedEncodings();
 029   
 030      /**
 031       * Set character encoding working with and convert to
 032       *
 033       * @param string      $encoding         The character encoding to work with
 034       * @param string|null $convertEncoding  The character encoding to convert to
 035       * @return StringWrapperInterface
 036       */
 037      public function setEncoding($encoding, $convertEncoding = null);
 038   
 039      /**
 040       * Get the defined character encoding to work with (upper case)
 041       *
 042       * @return string
 043       */
 044      public function getEncoding();
 045   
 046      /**
 047       * Get the defined character encoding to convert to (upper case)
 048       *
 049       * @return string|null
 050       */
 051      public function getConvertEncoding();
 052   
 053      /**
 054       * Returns the length of the given string
 055       *
 056       * @param string $str
 057       * @return int|false
 058       */
 059      public function strlen($str);
 060   
 061      /**
 062       * Returns the portion of string specified by the start and length parameters
 063       *
 064       * @param string   $str
 065       * @param int      $offset
 066       * @param int|null $length
 067       * @return string|false
 068       */
 069      public function substr($str, $offset = 0, $length = null);
 070   
 071      /**
 072       * Find the position of the first occurrence of a substring in a string
 073       *
 074       * @param string $haystack
 075       * @param string $needle
 076       * @param int    $offset
 077       * @return int|false
 078       */
 079      public function strpos($haystack, $needle, $offset = 0);
 080   
 081      /**
 082       * Convert a string from defined encoding to the defined convert encoding
 083       *
 084       * @param string  $str
 085       * @param bool $reverse
 086       * @return string|false
 087       */
 088      public function convert($str, $reverse = false);
 089   
 090      /**
 091       * Wraps a string to a given number of characters
 092       *
 093       * @param  string  $str
 094       * @param  int $width
 095       * @param  string  $break
 096       * @param  bool $cut
 097       * @return string
 098       */
 099      public function wordWrap($str, $width = 75, $break = "\n", $cut = false);
 100   
 101      /**
 102       * Pad a string to a certain length with another string
 103       *
 104       * @param  string  $input
 105       * @param  int $padLength
 106       * @param  string  $padString
 107       * @param  int $padType
 108       * @return string
 109       */
 110      public function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT);
 111  }
 112