-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
闫茂源
committed
Jun 1, 2024
1 parent
b8f5468
commit c6ba9ca
Showing
10 changed files
with
483 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package io.github.jmecn.text; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* desc: | ||
* | ||
* @author yanmaoyuan | ||
*/ | ||
public class EmojiRun { | ||
|
||
private final boolean isEmoji; | ||
private final int unicodeStart; | ||
private final int unicodeEnd; | ||
private final int textStart; | ||
private final int textEnd; | ||
|
||
EmojiRun(boolean isEmoji, int unicodeStart, int unicodeEnd, int textStart, int textEnd) { | ||
this.isEmoji = isEmoji; | ||
this.unicodeStart = unicodeStart; | ||
this.unicodeEnd = unicodeEnd; | ||
this.textStart = textStart; | ||
this.textEnd = textEnd; | ||
} | ||
|
||
public boolean isEmoji() { | ||
return isEmoji; | ||
} | ||
|
||
public int getUnicodeStart() { | ||
return unicodeStart; | ||
} | ||
|
||
public int getUnicodeEnd() { | ||
return unicodeEnd; | ||
} | ||
|
||
public int getTextStart() { | ||
return textStart; | ||
} | ||
|
||
public int getTextEnd() { | ||
return textEnd; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (!(o instanceof EmojiRun)) { | ||
return false; | ||
} | ||
EmojiRun that = (EmojiRun) o; | ||
return isEmoji == that.isEmoji && unicodeStart == that.unicodeStart && unicodeEnd == that.unicodeEnd && textStart == that.textStart && textEnd == that.textEnd; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(isEmoji, unicodeStart, unicodeEnd, textStart, textEnd); | ||
} | ||
} |
58 changes: 0 additions & 58 deletions
58
lib/src/test/java/io/github/jmecn/font/shaping/GMarkParser.java
This file was deleted.
Oops, something went wrong.
264 changes: 0 additions & 264 deletions
264
lib/src/test/java/io/github/jmecn/font/shaping/TestCharDetect.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.