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
#ifndef _MACARON_BASE64_H_ | |
#define _MACARON_BASE64_H_ | |
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2016 tomykaira | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including |
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
package com.hebdensoft; | |
import java.util.Comparator; | |
/** | |
* <p>A java.util.Comparator for version (or chapter) numbers, which have an arbitrary number of decimal points.</p> | |
* <p>The code was taken from https://bugs.openjdk.java.net/browse/JDK-8134512 and http://cr.openjdk.java.net/~igerasim/8134512/04/webrev/index.html</p> | |
* <p>How to use:</p> | |
* <p><code>myListOfVersionNumbers.sort(VersionNumberComparator.getInstance());</code></p> |
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
package com.cadrlife; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ShellSplitter { | |
public List<String> shellSplit(CharSequence string) { | |
List<String> tokens = new ArrayList<String>(); | |
boolean escaping = false; | |
char quoteChar = ' '; |