# GooglePlaces Framework Reference

# GMSAutocompleteMatchFragment

    @interface GMSAutocompleteMatchFragment : NSObject

This class represents a matched fragment of a string. This is a contiguous range of characters
in a string, suitable for highlighting in an autocompletion UI.
- `


  ### [offset](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSAutocompleteMatchFragment#/c:objc(cs)GMSAutocompleteMatchFragment(py)offset)


  ` The offset of the matched fragment. This is an index into a string. The character at this index
  is the first matched character.

  #### Declaration

  Swift

      var offset: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger offset;

- `


  ### [length](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSAutocompleteMatchFragment#/c:objc(cs)GMSAutocompleteMatchFragment(py)length)


  ` The length of the matched fragment.

  #### Declaration

  Swift

      var length: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger length;

- `


  ### [-init](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSAutocompleteMatchFragment#/c:objc(cs)GMSAutocompleteMatchFragment(im)init)


  ` Unavailable
  Initializer is not available.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;