// Returns true when the page title equals the provided equalsTitle
189058
func TitleEquals(tab *Tab, equalsTitle string) ConditionalFunc {
	return func(tab *Tab) bool {
		if pageTitle, err := tab.GetTitle(); err == nil && pageTitle == equalsTitle {
			return true
		}
		return false
	}
}
1123141
func (s String) Equals(other DxfElement) bool {
	if sStr, ok := other.(*String); ok {
		return s.value == sStr.value
	}
	return false
}
1151012
func (section *BodySectionName) Equal(other *BodySectionName) bool {
	if section.Peek != other.Peek {
		return false
	}
	if len(section.Partial) != len(other.Partial) {
		return false
	}
	if len(section.Partial) > 0 && section.Partial[0] != other.Partial[0] {
		return false
	}
	if len(section.Partial) > 1 && section.Partial[1] != other.Partial[1] {
		return false
	}
	return section.BodyPartName.Equal(&other.BodyPartName)
}
368218
func (extr *ContentExtractor) GetTitle(document *goquery.Document) string {
	title := ""

	titleElement := document.Find("title")
	if titleElement != nil && titleElement.Size() > 0 {
		title = titleElement.Text()
	}

	if title == "" {
		ogTitleElement := document.Find(`meta[property="og:title"]`)
		if ogTitleElement != nil && ogTitleElement.Size() > 0 {
			title, _ = ogTitleElement.Attr("content")
		}
	}

	if title == "" {
		titleElement = document.Find("post-title,headline")
		if titleElement == nil || titleElement.Size() == 0 {
			return title
		}
		title = titleElement.Text()
	}

	for _, delimiter := range titleDelimiters {
		if strings.Contains(title, delimiter) {
			title = extr.splitTitle(strings.Split(title, delimiter))
			break
		}
	}

	title = strings.Replace(title, motleyReplacement, "", -1)

	if extr.config.debug {
		log.Printf("Page title is %s\n", title)
	}

	return strings.TrimSpace(title)
}
933636
func (o *HitsPerPageOption) Equal(o2 *HitsPerPageOption) bool {
	if o2 == nil {
		return o.value == 20
	}
	return o.value == o2.value
}
947896
func IsQuotaHugePageResourceName(name core.ResourceName) bool {
	return strings.HasPrefix(string(name), core.ResourceHugePagesPrefix) || strings.HasPrefix(string(name), core.ResourceRequestsHugePagesPrefix)
}
185385
func (b PolicyBindings) Equals(another PolicyBindings) bool {
	if len(b) != len(another) {
		return false
	}
	for role, right := range another {
		left := b[role]
		if len(left) != len(right) {
			return false
		}
		for item := range left {
			if _, hasIt := right[item]; !hasIt {
				return false
			}
		}
	}
	return true
}
1249709
func (slice TagSlice) Equals(other DxfElement) bool {
	if otherSlice, ok := other.(TagSlice); ok {
		if len(slice) != len(otherSlice) {
			return false
		}

		for index, tag := range slice {
			otherTag := otherSlice[index]

			if !tag.Equals(otherTag) {
				return false
			}
		}
		return true
	}
	return false
}
923981
func (ns *Namespace) Title(s interface{}) (string, error) {
	ss, err := cast.ToStringE(s)
	if err != nil {
		return "", err
	}

	return ns.titleFunc(ss), nil
}
1015381
func (cm *ChanMode) Equals(other *ChanMode) bool {
	return reflect.DeepEqual(cm, other)
}
961499
func (e Text) Equals(other core.DxfElement) bool {
	if otherText, ok := other.(*Text); ok {
		return e.BaseEntity.Equals(otherText.BaseEntity) &&
			core.FloatEquals(e.Thickness, otherText.Thickness) &&
			e.FirstAlignmentPoint.Equals(otherText.FirstAlignmentPoint) &&
			core.FloatEquals(e.Height, otherText.Height) &&
			e.Value == otherText.Value &&
			core.FloatEquals(e.Rotation, otherText.Rotation) &&
			core.FloatEquals(e.RelativeXScale, otherText.RelativeXScale) &&
			core.FloatEquals(e.ObliqueAngle, otherText.ObliqueAngle) &&
			e.StyleName == otherText.StyleName &&
			e.MirroredX == otherText.MirroredX &&
			e.MirroredY == otherText.MirroredY &&
			e.HorizontalJustification == otherText.HorizontalJustification &&
			e.SecondAlignmentPoint.Equals(otherText.SecondAlignmentPoint) &&
			e.ExtrusionDirection.Equals(otherText.ExtrusionDirection) &&
			e.VerticalJustification == otherText.VerticalJustification
	}
	return false
}
1108633
func OptionTitle(x string) Option {
	return func(p *Prompt) error {
		p.renderer.title = x
		return nil
	}
}
1184518
func (c *CheckRunAnnotation) GetTitle() string {
	if c == nil || c.Title == nil {
		return ""
	}
	return *c.Title
}
174192
func (t *Table) SetHTMLStyleTitle(want titleStyle) {
	t.Style.htmlRules.title = want
}
363368
func (a *Attachment) GetTitle() string {
	if a == nil || a.Title == nil {
		return ""
	}
	return *a.Title
}
798846
func (id *IdentityID) Equals(other IdentityID) bool {
	return id.Role == other.Role && id.HostUUID == other.HostUUID
}
1010775
func (t TablesSection) Equals(other core.DxfElement) bool {
	if otherTable, ok := other.(*TablesSection); ok {
		return t.Layers.Equals(otherTable.Layers) &&
			t.Styles.Equals(otherTable.Styles) &&
			t.LineTypes.Equals(otherTable.LineTypes)
	}

	return false
}