mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename member_NthContiguous -> _nthContiguous
Swift SVN r18172
This commit is contained in:
@@ -255,7 +255,7 @@ struct _StringCore {
|
||||
}
|
||||
|
||||
/// Get the Nth UTF16 Code Unit stored
|
||||
func _NthContiguous(position: Int) -> UTF16.CodeUnit {
|
||||
func _nthContiguous(position: Int) -> UTF16.CodeUnit {
|
||||
let p = UnsafePointer<UInt8>(_pointerToNth(position).value)
|
||||
// Always dereference two bytes, but when elements are 8 bits we
|
||||
// multiply the high byte by 0.
|
||||
@@ -269,7 +269,7 @@ struct _StringCore {
|
||||
assert(position <= count)
|
||||
|
||||
if (_baseAddress != .null()) {
|
||||
return _NthContiguous(position)
|
||||
return _nthContiguous(position)
|
||||
}
|
||||
|
||||
return _cocoaStringSubscript(target: self, position: position)
|
||||
|
||||
@@ -121,8 +121,8 @@ extension String {
|
||||
while true {
|
||||
if AIdx < AEnd {
|
||||
if BIdx < BEnd {
|
||||
let e1 = self._base._NthContiguous(AIdx)
|
||||
let e2 = other._base._NthContiguous(BIdx)
|
||||
let e1 = self._base._nthContiguous(AIdx)
|
||||
let e2 = other._base._nthContiguous(BIdx)
|
||||
|
||||
if _slowPath((e1 >= 0x80) | (e2 >= 0x80)) {
|
||||
// Use slow unicode comparator if
|
||||
|
||||
Reference in New Issue
Block a user