- Timestamp:
- Sep 21, 2008, 2:06:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Text/StringBuilder.ab
r521 r629 456 456 End Function 457 457 458 /*! 459 @brief 内部用 460 代わりにStrPtr使ってください。 461 */ 458 462 Function __Chars() As *Char 459 463 Return chars 460 464 End Function 461 465 466 /*! 467 @brief 内部用 468 使わないでください。 469 */ 462 470 Sub __Stringized() 463 471 stringized = True … … 467 475 Sub initialize(capacity As Long, maxCapacity = LONG_MAX As Long) 468 476 If capacity < 0 Or maxCapacity < 1 Or maxCapacity < capacity Then 469 Throw New ArgumentOutOfRangeException("StringBuilder constructor : One or more arguments are out of range value.", "capacity or maxCapacity or both")477 Throw New ArgumentOutOfRangeException("StringBuilder constructor", "capacity or maxCapacity or both") 470 478 End If 471 479 … … 494 502 Sub rangeCheck(index As Long) 495 503 If index < 0 Or index > size Then 496 Throw New ArgumentOutOfRangeException("StringBuilder : Index argument is out of range value.")504 Throw New ArgumentOutOfRangeException("StringBuilder") 497 505 End If 498 506 End Sub … … 505 513 'length < 0は判定に入っていないことに注意 506 514 If startIndex < 0 Or count < 0 Or startIndex + count > length Then 507 Throw New ArgumentOutOfRangeException("StringBuilder : One or more arguments are out of range value.", "startIndex or count or both")515 Throw New ArgumentOutOfRangeException("StringBuilder", "startIndex or count or both") 508 516 End If 509 517 End Sub
Note:
See TracChangeset
for help on using the changeset viewer.