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

Commit be848dc

Browse files
committed
s/StringBuffer/Stringbuffer/
1 parent 9852f3a commit be848dc

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

Exception.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
* POSSIBILITY OF SUCH DAMAGE.
3535
*/
3636

37-
namespace Hoa\StringBuffer {
37+
namespace Hoa\Stringbuffer {
3838

3939
/**
40-
* Class \Hoa\StringBuffer\Exception.
40+
* Class \Hoa\Stringbuffer\Exception.
4141
*
4242
* Extending the \Hoa\Core\Exception class.
4343
*

Read.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
from('Hoa')
4040

4141
/**
42-
* \Hoa\StringBuffer\Exception
42+
* \Hoa\Stringbuffer\Exception
4343
*/
44-
-> import('StringBuffer.Exception')
44+
-> import('Stringbuffer.Exception')
4545

4646
/**
47-
* \Hoa\StringBuffer
47+
* \Hoa\Stringbuffer
4848
*/
49-
-> import('StringBuffer.~')
49+
-> import('Stringbuffer.~')
5050

5151
/**
5252
* \Hoa\Stream\IStream\In
@@ -55,10 +55,10 @@
5555

5656
}
5757

58-
namespace Hoa\StringBuffer {
58+
namespace Hoa\Stringbuffer {
5959

6060
/**
61-
* Class \Hoa\StringBuffer\Read.
61+
* Class \Hoa\Stringbuffer\Read.
6262
*
6363
* Read a string buffer.
6464
*
@@ -67,7 +67,7 @@
6767
* @license New BSD License
6868
*/
6969

70-
class Read extends StringBuffer implements \Hoa\Stream\IStream\In {
70+
class Read extends Stringbuffer implements \Hoa\Stream\IStream\In {
7171

7272
/**
7373
* Test for end-of-file.
@@ -86,7 +86,7 @@ public function eof ( ) {
8686
* @access public
8787
* @param int $length Length.
8888
* @return string
89-
* @throw \Hoa\StringBuffer\Exception
89+
* @throw \Hoa\Stringbuffer\Exception
9090
*/
9191
public function read ( $length ) {
9292

ReadWrite.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
from('Hoa')
4040

4141
/**
42-
* \Hoa\StringBuffer\Exception
42+
* \Hoa\Stringbuffer\Exception
4343
*/
44-
-> import('StringBuffer.Exception')
44+
-> import('Stringbuffer.Exception')
4545

4646
/**
47-
* \Hoa\StringBuffer
47+
* \Hoa\Stringbuffer
4848
*/
49-
-> import('StringBuffer.~')
49+
-> import('Stringbuffer.~')
5050

5151
/**
5252
* \Hoa\Stream\IStream\In
@@ -60,10 +60,10 @@
6060

6161
}
6262

63-
namespace Hoa\StringBuffer {
63+
namespace Hoa\Stringbuffer {
6464

6565
/**
66-
* Class \Hoa\StringBuffer\ReadWrite.
66+
* Class \Hoa\Stringbuffer\ReadWrite.
6767
*
6868
* Read/write a string buffer.
6969
*
@@ -73,7 +73,7 @@
7373
*/
7474

7575
class ReadWrite
76-
extends StringBuffer
76+
extends Stringbuffer
7777
implements \Hoa\Stream\IStream\In,
7878
\Hoa\Stream\IStream\Out {
7979

@@ -94,7 +94,7 @@ public function eof ( ) {
9494
* @access public
9595
* @param int $length Length.
9696
* @return string
97-
* @throw \Hoa\StringBuffer\Exception
97+
* @throw \Hoa\Stringbuffer\Exception
9898
*/
9999
public function read ( $length ) {
100100

@@ -217,7 +217,7 @@ public function scanf ( $format ) {
217217
* @param string $string String.
218218
* @param int $length Length.
219219
* @return mixed
220-
* @throw \Hoa\StringBuffer\Exception
220+
* @throw \Hoa\Stringbuffer\Exception
221221
*/
222222
public function write ( $string, $length ) {
223223

StringBuffer.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060

6161
}
6262

63-
namespace Hoa\StringBuffer {
63+
namespace Hoa\Stringbuffer {
6464

6565
/**
66-
* Class \Hoa\StringBuffer.
66+
* Class \Hoa\Stringbuffer.
6767
*
6868
*
6969
*
@@ -72,7 +72,7 @@
7272
* @license New BSD License
7373
*/
7474

75-
abstract class StringBuffer
75+
abstract class Stringbuffer
7676
extends \Hoa\Stream
7777
implements \Hoa\Stream\IStream\Bufferable,
7878
\Hoa\Stream\IStream\Lockable,
@@ -81,7 +81,7 @@ abstract class StringBuffer
8181
/**
8282
* String buffer index.
8383
*
84-
* @var \Hoa\StringBuffer int
84+
* @var \Hoa\Stringbuffer int
8585
*/
8686
private static $_i = 0;
8787

@@ -98,7 +98,7 @@ abstract class StringBuffer
9898
public function __construct ( $streamName = null ) {
9999

100100
if(null === $streamName)
101-
$streamName = 'hoa://Library/StringBuffer#' . self::$_i++;
101+
$streamName = 'hoa://Library/Stringbuffer#' . self::$_i++;
102102

103103
parent::__construct($streamName, null);
104104

@@ -113,7 +113,7 @@ public function __construct ( $streamName = null ) {
113113
* null).
114114
* @param \Hoa\Stream\Context $context Context.
115115
* @return resource
116-
* @throw \Hoa\StringBuffer\Exception
116+
* @throw \Hoa\Stringbuffer\Exception
117117
*/
118118
protected function &_open ( $streamName, \Hoa\Stream\Context $context = null ) {
119119

@@ -256,7 +256,7 @@ public function tell ( ) {
256256
*
257257
* @access public
258258
* @param string $string String.
259-
* @return \Hoa\StringBuffer
259+
* @return \Hoa\Stringbuffer
260260
*/
261261
public function initializeWith ( $string ) {
262262

@@ -270,9 +270,9 @@ public function initializeWith ( $string ) {
270270
}
271271

272272
/**
273-
* Class \Hoa\StringBuffer\_Protocol.
273+
* Class \Hoa\Stringbuffer\_Protocol.
274274
*
275-
* hoa://Library/StringBuffer component.
275+
* hoa://Library/Stringbuffer component.
276276
*
277277
* @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
278278
* @copyright Copyright © 2007-2013 Ivan Enderlin.
@@ -286,7 +286,7 @@ class _Protocol extends \Hoa\Core\Protocol {
286286
*
287287
* @var \Hoa\Core\Protocol string
288288
*/
289-
protected $_name = 'StringBuffer';
289+
protected $_name = 'Stringbuffer';
290290

291291

292292

@@ -300,7 +300,7 @@ class _Protocol extends \Hoa\Core\Protocol {
300300
public function reachId ( $id ) {
301301

302302
$stream = resolve(
303-
'hoa://Library/Stream#hoa://Library/StringBuffer#' . $id
303+
'hoa://Library/Stream#hoa://Library/Stringbuffer#' . $id
304304
);
305305

306306
if(null === $stream)
@@ -316,10 +316,10 @@ public function reachId ( $id ) {
316316
namespace {
317317

318318
/**
319-
* Add the hoa://Library/StringBuffer component. Help to know to real path of a
319+
* Add the hoa://Library/Stringbuffer component. Help to know to real path of a
320320
* stringbuffer.
321321
*/
322322
$protocol = \Hoa\Core::getInstance()->getProtocol();
323-
$protocol['Library'][] = new \Hoa\StringBuffer\_Protocol();
323+
$protocol['Library'][] = new \Hoa\Stringbuffer\_Protocol();
324324

325325
}

Write.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
from('Hoa')
4040

4141
/**
42-
* \Hoa\StringBuffer\Exception
42+
* \Hoa\Stringbuffer\Exception
4343
*/
44-
-> import('StringBuffer.Exception')
44+
-> import('Stringbuffer.Exception')
4545

4646
/**
47-
* \Hoa\StringBuffer
47+
* \Hoa\Stringbuffer
4848
*/
49-
-> import('StringBuffer.~')
49+
-> import('Stringbuffer.~')
5050

5151
/**
5252
* \Hoa\Stream\IStream\Out
@@ -55,10 +55,10 @@
5555

5656
}
5757

58-
namespace Hoa\StringBuffer {
58+
namespace Hoa\Stringbuffer {
5959

6060
/**
61-
* Class \Hoa\StringBuffer\Write.
61+
* Class \Hoa\Stringbuffer\Write.
6262
*
6363
* Write into a string buffer.
6464
*
@@ -67,7 +67,7 @@
6767
* @license New BSD License
6868
*/
6969

70-
class Write extends StringBuffer implements \Hoa\Stream\IStream\Out {
70+
class Write extends Stringbuffer implements \Hoa\Stream\IStream\Out {
7171

7272
/**
7373
* Write n characters.
@@ -76,7 +76,7 @@ class Write extends StringBuffer implements \Hoa\Stream\IStream\Out {
7676
* @param string $string String.
7777
* @param int $length Length.
7878
* @return mixed
79-
* @throw \Hoa\StringBuffer\Exception
79+
* @throw \Hoa\Stringbuffer\Exception
8080
*/
8181
public function write ( $string, $length ) {
8282

0 commit comments

Comments
 (0)