Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
聖園ミカ
DataEditorX
Commits
c77b2262
Commit
c77b2262
authored
Jan 15, 2015
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.0.4
parent
b496a883
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
DataEditorX/Common/StrUtil.cs
DataEditorX/Common/StrUtil.cs
+12
-4
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+1
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/DataEditorX.exe.config
win32/DataEditorX.exe.config
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Common/StrUtil.cs
View file @
c77b2262
...
...
@@ -6,15 +6,16 @@ namespace DataEditorX.Common
{
public
class
StrUtil
{
public
static
string
AutoEnter
(
string
str
,
int
lineNum
,
string
re
)
public
static
string
AutoEnter
(
string
str
,
int
lineNum
,
char
re
)
{
if
(
str
==
null
||
str
.
Length
==
0
||
re
==
null
||
re
.
Length
==
0
)
if
(
str
==
null
||
str
.
Length
==
0
||
re
==
null
)
return
str
;
str
=
str
.
Replace
(
"\r\n"
,
"\n"
);
char
[]
ch
=
str
.
ToCharArray
();
int
count
=
ch
.
Length
;
StringBuilder
sb
=
new
StringBuilder
();
int
i
=
0
;
foreach
(
char
c
in
ch
)
{
...
...
@@ -25,8 +26,15 @@ public static string AutoEnter(string str, int lineNum, string re)
i
+=
1
;
sb
.
Append
(
c
);
if
(
c
==
'\n'
||
c
==
'\r'
)
{
sb
.
Append
(
re
);
i
=
0
;
if
(
i
>=
lineNum
)
}
else
if
(
c
==
re
)
{
i
=
0
;
}
else
if
(
i
>=
lineNum
)
{
sb
.
Append
(
re
);
i
=
0
;
...
...
DataEditorX/DataEditForm.cs
View file @
c77b2262
...
...
@@ -1548,7 +1548,7 @@ private void menuitem_saveasenter_Click(object sender, EventArgs e)
int
len
=
MyConfig
.
readInteger
(
MyConfig
.
TAG_AUTO_LEN
,
30
);
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
cards
[
i
].
desc
=
StrUtil
.
AutoEnter
(
cards
[
i
].
desc
,
len
,
" "
);
cards
[
i
].
desc
=
StrUtil
.
AutoEnter
(
cards
[
i
].
desc
,
len
,
' '
);
}
DataBase
.
CopyDB
(
dlg
.
FileName
,
false
,
cards
);
MyMsg
.
Show
(
LMSG
.
CopyCardsToDBIsOK
);
...
...
DataEditorX/app.config
View file @
c77b2262
...
...
@@ -11,7 +11,7 @@
System
.
Configuration
.
ConfigurationManager
.
AppSettings
[
key
]
-->
<!--
auto
enter
length
-->
<
add
key
=
"autolength"
value
=
"3
2
"
/>
<
add
key
=
"autolength"
value
=
"3
0
"
/>
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
...
...
win32/DataEditorX.exe
View file @
c77b2262
No preview for this file type
win32/DataEditorX.exe.config
View file @
c77b2262
...
...
@@ -11,7 +11,7 @@
System
.
Configuration
.
ConfigurationManager
.
AppSettings
[
key
]
-->
<!--
auto
enter
length
-->
<
add
key
=
"autolength"
value
=
"3
2
"
/>
<
add
key
=
"autolength"
value
=
"3
0
"
/>
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
...
...
win32/win32.zip
View file @
c77b2262
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment