Skip to content

Commit 0172a1a

Browse files
committed
Add the new feature about removing characters on TextProcessingController.
1 parent dd0198a commit 0172a1a

13 files changed

+379
-5
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ Enhance your Go applications with the [Aspose.Cells Cloud](https://products.aspo
2121

2222
## There are major problems with v24.5.0 and it does not work properly, please use v24.5.1.
2323

24-
## Feature & Enhancements in Version 24.9
24+
## Feature & Enhancements in Version 24.10
2525

2626
Full list of issues covering all changes in this release:
2727

28-
- Add word case function for TextProcessingController.
29-
- Support to export Worksheet to HTML with cell address or id.
28+
- Add the new feature about removing characters on TextProcessingController.
3029

3130
## Support file format
3231

@@ -119,6 +118,11 @@ To get started with Aspose.Cells Cloud for Go, follow these steps:
119118

120119
# Release history version
121120

121+
## Feature & Enhancements in Version 24.9
122+
123+
- Add word case function for TextProcessingController.
124+
- Support to export Worksheet to HTML with cell address or id.
125+
122126
## Feature & Enhancements in Version 24.8
123127

124128
- Add text trim feature on Cells Cloud Services.

api/swagger.yaml

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
swagger: "2.0"
33
info:
4-
version: "24.9"
4+
version: "24.10"
55
title: "Aspose.Cells Cloud APIs."
66
host: "api.aspose.cloud"
77
basePath: "/v3.0"
@@ -12039,6 +12039,20 @@ paths:
1203912039
type: "class:wordcaseoptions"
1204012040
x-nullable: true
1204112041
x-exportParamName: "wordCaseOptions"
12042+
/cells/removecharacters:
12043+
post:
12044+
tags:
12045+
- "Cells"
12046+
summary: ""
12047+
operationId: "PostRemoveCharacters"
12048+
parameters:
12049+
- name: "removecharactersoptions"
12050+
in: "Body"
12051+
description: ""
12052+
required: true
12053+
type: "class:removecharactersoptions"
12054+
x-nullable: true
12055+
x-exportParamName: "removeCharactersOptions"
1204212056
/cells/{name}/defaultstyle:
1204312057
get:
1204412058
tags:
@@ -22211,6 +22225,71 @@ definitions:
2221122225
Name:
2221222226
type: "string"
2221322227
description: ""
22228+
CharacterSetsType:
22229+
allOf:
22230+
- type: "object"
22231+
22232+
properties:
22233+
22234+
RemoveCharactersByCharacter:
22235+
type: "object"
22236+
properties:
22237+
RemoveTextMethod:
22238+
type: "string"
22239+
description: ""
22240+
RemoveCharacters:
22241+
type: "container"
22242+
description: ""
22243+
RemoveCharacterSetsType:
22244+
type: "string"
22245+
description: ""
22246+
RemoveCharactersByPosition:
22247+
type: "object"
22248+
properties:
22249+
TheFirstNCharacters:
22250+
type: "integer"
22251+
description: ""
22252+
TheLastNCharacters:
22253+
type: "integer"
22254+
description: ""
22255+
AllCharactersBeforeText:
22256+
type: "string"
22257+
description: ""
22258+
AllCharactersAfterText:
22259+
type: "string"
22260+
description: ""
22261+
RemoveCharactersOptions:
22262+
allOf:
22263+
- type: "object"
22264+
22265+
properties:
22266+
Name:
22267+
type: "string"
22268+
description: ""
22269+
DataSource:
22270+
type: "class:datasource"
22271+
description: ""
22272+
FileInfo:
22273+
type: "class:fileinfo"
22274+
description: ""
22275+
Worksheet:
22276+
type: "string"
22277+
description: ""
22278+
Range:
22279+
type: "string"
22280+
description: ""
22281+
RemoveCharactersByCharacter:
22282+
type: "class:removecharactersbycharacter"
22283+
description: ""
22284+
RemoveCharactersByPosition:
22285+
type: "class:removecharactersbyposition"
22286+
description: ""
22287+
RemoveTextMethodType:
22288+
allOf:
22289+
- type: "object"
22290+
22291+
properties:
22292+
2221422293
ScopeItem:
2221522294
type: "object"
2221622295
properties:

api_cells.go

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func Version() {
36-
fmt.Println("---Version: 24.9---")
36+
fmt.Println("---Version: 24.10---")
3737
}
3838

3939
func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiService {
@@ -7271,6 +7271,34 @@ func (a *CellsApiService) PostUpdateWordCase(data *PostUpdateWordCaseRequest) (
72717271
}
72727272

72737273

7274+
func (a *CellsApiService) PostRemoveCharacters(data *PostRemoveCharactersRequest) ( FileInfo, *http.Response, error) {
7275+
var (
7276+
localVarReturnValue FileInfo
7277+
7278+
)
7279+
7280+
r, err := data.CreateRequestData(a.client);
7281+
if err != nil {
7282+
return localVarReturnValue, nil, err
7283+
}
7284+
7285+
localVarHttpResponse, err := a.client.callAPI(r)
7286+
if err != nil || localVarHttpResponse == nil {
7287+
return localVarReturnValue, localVarHttpResponse, err
7288+
}
7289+
defer localVarHttpResponse.Body.Close()
7290+
if localVarHttpResponse.StatusCode >= 300 {
7291+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7292+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7293+
}
7294+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
7295+
return localVarReturnValue, localVarHttpResponse, err
7296+
}
7297+
7298+
return localVarReturnValue, localVarHttpResponse, err
7299+
}
7300+
7301+
72747302
func (a *CellsApiService) GetWorkbookDefaultStyle(data *GetWorkbookDefaultStyleRequest) ( StyleResponse, *http.Response, error) {
72757303
var (
72767304
localVarReturnValue StyleResponse

docs/api/post-remove-characters.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **postRemoveCharacters API**
2+
3+
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/removecharacters
8+
9+
```
10+
11+
## The request parameters of **postRemoveCharacters** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
|removeCharactersOptions|Class|Body||
16+
17+
18+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostRemoveCharacters) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/model/character-sets-type.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# **characterSetsType**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# **removeCharactersByCharacter**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|RemoveTextMethod|String|true|false | ||
10+
|RemoveCharacters|Container|true|false | ||
11+
|RemoveCharacterSetsType|String|true|false | ||
12+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# **removeCharactersByPosition**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|TheFirstNCharacters|Integer|true|false | ||
10+
|TheLastNCharacters|Integer|true|false | ||
11+
|AllCharactersBeforeText|String|true|false | ||
12+
|AllCharactersAfterText|String|true|false | ||
13+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# **removeCharactersOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|Name|String|true|false | ||
10+
|DataSource|Class|true|false | ||
11+
|FileInfo|Class|true|false | ||
12+
|Worksheet|String|true|false | ||
13+
|Range|String|true|false | ||
14+
|RemoveCharactersByCharacter|Class|true|false | ||
15+
|RemoveCharactersByPosition|Class|true|false | ||
16+

docs/model/remove-text-method-type.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# **removeTextMethodType**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="RemoveCharactersByCharacter.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type RemoveCharactersByCharacter struct {
29+
30+
RemoveTextMethod string `json:"RemoveTextMethod,omitempty" xml:"RemoveTextMethod"`
31+
RemoveCharacters []string `json:"RemoveCharacters,omitempty" xml:"RemoveCharacters"`
32+
RemoveCharacterSetsType string `json:"RemoveCharacterSetsType,omitempty" xml:"RemoveCharacterSetsType"`
33+
}

0 commit comments

Comments
 (0)