Skip to content

Commit

Permalink
Modify the sub-replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyuan8983 committed Jan 20, 2025
1 parent fc5be12 commit 7bb8685
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
## Syntax

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## Parameters
Expand All @@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | The target string in which the replacement will occur |
| `<new_str>` | The string that will replace the specified substring |
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |

## Return Value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ under the License.
## 语法

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## 参数
Expand All @@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | 要进行替换操作的目标字符串 |
| `<new_str>` | 用于替换的目标字符串 |
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |

## 返回值

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ under the License.
## 语法

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## 参数
Expand All @@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | 要进行替换操作的目标字符串 |
| `<new_str>` | 用于替换的目标字符串 |
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |

## 返回值

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ under the License.
## 语法

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## 参数
Expand All @@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | 要进行替换操作的目标字符串 |
| `<new_str>` | 用于替换的目标字符串 |
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |

## 返回值

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
## Syntax

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## Parameters
Expand All @@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | The target string in which the replacement will occur |
| `<new_str>` | The string that will replace the specified substring |
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |

## Return Value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
## Syntax

```sql
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
```

## Parameters
Expand All @@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
| -- | -- |
| `<str>` | The target string in which the replacement will occur |
| `<new_str>` | The string that will replace the specified substring |
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |

## Return Value

Expand Down

0 comments on commit 7bb8685

Please sign in to comment.