---
title: "isEqualTo(const OSString *)"
framework: kernel
role: pseudoSymbol
path: kernel/osstring/1808297-isequalto
---

# isEqualTo(const OSString *)

Tests the equality of two OSString objects.

## Declaration

```occ
virtual bool isEqualTo(
 const OSString *aString) const; 
```

## Parameters

- `aString`: The OSString object being compared against the receiver.

## Return Value

Return Value true if the two OSString objects are equivalent, false otherwise.

## Overview

Overview Two OSString objects are considered equal if they have same length and if their byte buffers hold the same contents.

## See Also

### Miscellaneous

- [free](kernel/osstring/1808271-free.md)
- [getChar](kernel/osstring/1808273-getchar.md)
- [getCStringNoCopy](kernel/osstring/1808275-getcstringnocopy.md)
- [getLength](kernel/osstring/1808278-getlength.md)
- [initWithCString](kernel/osstring/1808281-initwithcstring.md)
- [initWithCStringNoCopy](kernel/osstring/1808284-initwithcstringnocopy.md)
- [initWithString](kernel/osstring/1808286-initwithstring.md)
- [isEqualTo(const char *)](kernel/osstring/1808288-isequalto.md)
- [isEqualTo(const OSData *)](kernel/osstring/1808292-isequalto.md)
- [isEqualTo(const OSMetaClassBase *)](kernel/osstring/1808295-isequalto.md)
- [serialize](kernel/osstring/1808298-serialize.md)
- [setChar](kernel/osstring/1808300-setchar.md)
- [withCString](kernel/osstring/1808301-withcstring.md)
- [withCStringNoCopy](kernel/osstring/1808304-withcstringnocopy.md)
- [withString](kernel/osstring/1808306-withstring.md)
