Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
StarUML Evológica Plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evologica
StarUML Evológica Plugin
Commits
d0ba6c92
Commit
d0ba6c92
authored
Nov 06, 2020
by
Jucelino Fonseca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajuste
parent
180b792e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
ituExplorerV2.pas
EvoUMLPlugin/src/ituExplorerV2.pas
+9
-8
No files found.
EvoUMLPlugin/src/ituExplorerV2.pas
View file @
d0ba6c92
...
@@ -1347,13 +1347,16 @@ begin
...
@@ -1347,13 +1347,16 @@ begin
end
;
end
;
function
TExplorerV2
.
GetTextBetweenWord
(
piSynEdit
:
TSynEdit
;
piWordPos
:
TPoint
;
piWord
:
string
):
string
;
function
TExplorerV2
.
GetTextBetweenWord
(
piSynEdit
:
TSynEdit
;
piWordPos
:
TPoint
;
piWord
:
string
):
string
;
var
p1
,
p2
:
TPoint
;
var
p1
,
p2
:
TPoint
;
//li_Pos : integer;
li_Pos
:
integer
;
lWord
:
string
;
begin
begin
if
trim
(
piWord
)
=
''
then
lWord
:=
trim
(
piSynEdit
.
GetWordAtRowCol
(
piWordPos
));
p1
:=
piWordPos
;
p2
:=
piSynEdit
.
CaretXY
;
if
((
p2
.
Y
-
p1
.
Y
)
>
0
)
AND
(
lWord
=
''
)
then
begin
begin
p1
:=
piWordPos
;
p2
:=
piSynEdit
.
CaretXY
;
result
:=
''
;
result
:=
''
;
while
(
result
=
''
)
and
(
p1
.
Y
>
0
)
do
while
(
result
=
''
)
and
(
p1
.
Y
>
0
)
do
begin
begin
...
@@ -1363,11 +1366,9 @@ begin
...
@@ -1363,11 +1366,9 @@ begin
end
end
else
else
begin
begin
p1
:=
piWordPos
;
p2
:=
piSynEdit
.
CaretXY
;
if
p2
.
Y
<>
p1
.
Y
then
if
p2
.
Y
<>
p1
.
Y
then
begin
begin
p1
.
X
:=
p1
.
X
-
Length
(
pi
Word
);
p1
.
X
:=
p1
.
X
-
Length
(
l
Word
);
end
;
end
;
result
:=
piSynEdit
.
TextBetweenPoints
[
p1
,
p2
];
result
:=
piSynEdit
.
TextBetweenPoints
[
p1
,
p2
];
end
;
end
;
...
...
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