Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReplaceAllStringFunc (0.17 sec)

  1. logger/sql.go

    					continue
    				}
    			}
    			newSQL.WriteByte(v)
    		}
    
    		sql = newSQL.String()
    	} else {
    		sql = numericPlaceholder.ReplaceAllString(sql, "$$$1$$")
    
    		sql = numericPlaceholderRe.ReplaceAllStringFunc(sql, func(v string) string {
    			num := v[1 : len(v)-1]
    			n, _ := strconv.Atoi(num)
    
    			// position var start from 1 ($1, $2)
    			n -= 1
    			if n >= 0 && n <= len(vars)-1 {
    				return vars[n]
    			}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg regexp, method (*Regexp) ReplaceAllLiteralString(string, string) string
    pkg regexp, method (*Regexp) ReplaceAllString(string, string) string
    pkg regexp, method (*Regexp) ReplaceAllStringFunc(string, func(string) string) string
    pkg regexp, method (*Regexp) String() string
    pkg regexp, method (*Regexp) SubexpNames() []string
    pkg regexp, type Regexp struct
    pkg regexp/syntax, const ClassNL Flags
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top