// HasAlias returns true if a value for alias has been set.
171291
func HasAlias(ctx context.Context) bool {
	_, ok := ctx.Value(ctxKeyAlias).(string)
	return ok
}
219114
func HasTableAlias(alias string, sqlStr string, quotes ...string) (bool, error) {
	var left, right string
	switch len(quotes) {
	case 2:
		right = quotes[1]
		left = quotes[0]
	case 1:
		left = quotes[0]
		right = left
	default:
		left = "`"
		right = "`"
	}
	re, err := regexp.Compile("[ ,][" + left + "]?" + alias + "[" + right + "]?\\.")
	if err != nil {
		return false, err
	}
	return re.MatchString(` ` + sqlStr), err
}
710361
func (ctx *Context) IsSet(flag string, aliasFlags ...string) bool {
	fl, ok := ctx.flagSet.flagMap[flag]
	if ok {
		return fl.isSet
	}
	for _, alias := range aliasFlags {
		if fl, ok := ctx.flagSet.flagMap[alias]; ok {
			return fl.isSet
		}
	}
	return false
}
1061774
func (dds *Delayed) Has(key ds.Key) (exists bool, err error) {
	dds.delay.Wait()
	return dds.ds.Has(key)
}
648353
func (c *Connection) AddAlias(alias string, indexes []string) (*Response, error) {
	return c.modifyAlias("add", alias, indexes)
}
1216668
func (s *DirectoryDescription) SetAlias(v string) *DirectoryDescription {
	s.Alias = &v
	return s
}
61755
func (s *AliasesService) Alias(alias ...string) *AliasesService {
	s.alias = append(s.alias, alias...)
	return s
}
885619
func alias(a, b *decimal.Big) *decimal.Big {
	if a != b {
		return a
	}
	return decimal.WithContext(a.Context)
}
295965
func (c *Client) Aliases() (v aliases.Indexes, err error) {
	err = c.Request("GET", "/_aliases", nil, &v)
	return
}
1000406
func hasOption(opt int, options []int) bool {
	for _, v := range options {
		if opt == v {
			return true
		}
	}

	return false
}
155446
func (s *DistributionSummary) SetAliases(v *Aliases) *DistributionSummary {
	s.Aliases = v
	return s
}
1365377
func (s *AliasListEntry) SetAliasName(v string) *AliasListEntry {
	s.AliasName = &v
	return s
}
1181926
func fieldAlias(field reflect.StructField, tagName string) (alias string, options tagOptions) {
	if tag := field.Tag.Get(tagName); tag != "" {
		alias, options = parseTag(tag)
	}
	if alias == "" {
		alias = field.Name
	}
	return alias, options
}
628981
func (cmd *CLI) setAliasValues(flags []*Flag, args []string) []string {
	for i, flag := range flags {
		isLastFlag := i == len(flags)-1
		if isLastFlag {
			args = cmd.setFlagValue(flag, args)
		} else {
			cmd.setFlagValue(flag, []string{})
		}
	}
	return args
}
539783
func (s *CreateUserPoolInput) SetAliasAttributes(v []*string) *CreateUserPoolInput {
	s.AliasAttributes = v
	return s
}
255332
func (f *File) ImportAlias(path, alias string) {
	f.hints[path] = importdef{name: alias, alias: true}
}
150363
func (statement *Statement) Alias(alias string) *Statement {
	statement.TableAlias = alias
	return statement
}