mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Propagate ForwardIndexType docs to models
200 undocumented public APIs remain in core Swift SVN r22222
This commit is contained in:
@@ -93,6 +93,9 @@ extension String {
|
||||
_sanityCheck(_coreIndex <= _core.count)
|
||||
}
|
||||
|
||||
/// Returns the next consecutive value after `self`.
|
||||
///
|
||||
/// Requires: the next value is representable.
|
||||
public func successor() -> Index {
|
||||
let newBuffer0 = (_buffer >> 8) | (
|
||||
0xFF << numericCast((sizeofValue(_buffer) &- 1) &* 8)
|
||||
|
||||
Reference in New Issue
Block a user