1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

build_tools: Tidy up BuildHelperFunctions and remove some unnecessary namespaces

This commit is contained in:
reuk 2021-07-19 19:00:25 +01:00
parent 366a626894
commit 0a609b307e
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
6 changed files with 44 additions and 40 deletions

View file

@ -27,7 +27,7 @@ namespace juce
{
namespace build_tools
{
StringArray getVersionSegments (juce::StringRef p)
StringArray getVersionSegments (StringRef p)
{
auto segments = StringArray::fromTokens (p, ",.", "");
segments.trim();
@ -47,12 +47,12 @@ namespace build_tools
return value;
}
int getVersionAsHexInteger (juce::StringRef versionString)
int getVersionAsHexInteger (StringRef versionString)
{
return getVersionAsHexIntegerFromParts (getVersionSegments (versionString));
}
String getVersionAsHex (juce::StringRef versionString)
String getVersionAsHex (StringRef versionString)
{
return "0x" + String::toHexString (getVersionAsHexInteger (versionString));
}