|
RuneHive-Game
|
Static Public Member Functions | |
| static String | appendIndefiniteArticle (String thing) |
Appends the determined indefinite article to thing. | |
| static String | appendPluralCheck (String thing) |
Appends the determined plural check to thing. | |
| static String | capitalize (String string) |
| static int | convertAmount (String input) |
| static String | format (int num) |
| static String | formatPrice (long amount) |
| static String | formatText (String s) |
| static String | getAOrAn (String nextWord) |
| static long | hash (String input) |
| Hashes a given string input. | |
| static int | hashArchive (String string) |
Hashes a String using Jagex's algorithm, this method should be used to convert actual names to hashed names to lookup files within the FileSystem. | |
| static String | hashToString (long input) |
Static Private Member Functions | |
| static int | _hash (String string) |
Hashes a String using Jagex's algorithm, this method should be used to convert actual names to hashed names to lookup files within the FileSystem. | |
| static String | determineIndefiniteArticle (String thing) |
Determines the indefinite article of thing. | |
| static String | determinePluralCheck (String thing) |
Determines the plural check of thing. | |
Static Private Attributes | |
| static final char | VALID_USERNAME_CHARACTERS [] |
| An array containing valid username characters. | |
Definition at line 8 of file StringUtils.java.
|
staticprivate |
Hashes a String using Jagex's algorithm, this method should be used to convert actual names to hashed names to lookup files within the FileSystem.
This method should only be used internally, it is marked deprecated as it does not properly hash the specified String. The functionality of this method is used to register a proper String hashing method. The scope of this method has been marked as private to prevent confusion.
| string | The string to hash. |
String. See the note below for more information. Definition at line 202 of file StringUtils.java.
References hash().
Referenced by hashArchive().
|
static |
Appends the determined indefinite article to thing.
| thing | the thing to append. |
thing after the indefinite article has been appended. Definition at line 96 of file StringUtils.java.
References determineIndefiniteArticle().
Referenced by com.runehive.content.skill.impl.smithing.SmithingArmour.canInit(), com.runehive.content.skill.impl.HarvestingSkillAction.canRun(), and com.runehive.content.skill.impl.woodcutting.Woodcutting.clickObject().
|
static |
Appends the determined plural check to thing.
| thing | the thing to append. |
thing after the plural check has been appended. Definition at line 86 of file StringUtils.java.
References determinePluralCheck().
Referenced by com.runehive.content.skill.impl.ProducingSkillAction.canRun().
|
static |
Definition at line 100 of file StringUtils.java.
Referenced by com.runehive.content.skill.impl.smithing.SmithingTable.AdamantTable.AdamantTable(), com.runehive.content.skill.impl.smithing.SmithingTable.BronzeTable.BronzeTable(), com.runehive.content.skill.impl.smithing.SmithingTable.IronTable.IronTable(), com.runehive.content.skill.impl.smithing.SmithingTable.MithrilTable.MithrilTable(), com.runehive.content.skill.impl.smithing.SmithingArmour.openInterface(), com.runehive.content.skill.impl.smithing.SmithingTable.RuniteTable.RuniteTable(), com.runehive.content.lms.LMSGame.setupSafezone(), and com.runehive.content.skill.impl.smithing.SmithingTable.SteelTable.SteelTable().
|
static |
Definition at line 29 of file StringUtils.java.
|
staticprivate |
Determines the indefinite article of thing.
| thing | the thing to determine for. |
Definition at line 63 of file StringUtils.java.
Referenced by appendIndefiniteArticle().
|
staticprivate |
Determines the plural check of thing.
| thing | the thing to determine for. |
Definition at line 75 of file StringUtils.java.
Referenced by appendPluralCheck().
|
static |
Definition at line 104 of file StringUtils.java.
|
static |
Definition at line 18 of file StringUtils.java.
|
static |
Definition at line 108 of file StringUtils.java.
|
static |
Definition at line 122 of file StringUtils.java.
Referenced by com.runehive.game.world.entity.combat.magic.Autocast.sendSelectionInterface(), and com.runehive.content.skill.impl.herblore.Herblore.useItem().
|
static |
Hashes a given string input.
| input | The string to hash. |
long. Definition at line 151 of file StringUtils.java.
References hash().
Referenced by _hash(), hash(), and hashToString().
|
static |
Hashes a String using Jagex's algorithm, this method should be used to convert actual names to hashed names to lookup files within the FileSystem.
| string | The string to hash. |
Definition at line 179 of file StringUtils.java.
References _hash().
Referenced by com.runehive.fs.cache.archive.Archive.getSector().
|
static |
Definition at line 131 of file StringUtils.java.
References hash(), and VALID_USERNAME_CHARACTERS.
|
staticprivate |
An array containing valid username characters.
Definition at line 11 of file StringUtils.java.
Referenced by hashToString().