Games in general often have unrealistic physics when it comes to projectiles, but the more simplistic platformers sometimes take this to the extreme. Specifically, they'll let you jump on and ride atop one in mid-flight, without altering its perfectly-straight trajectory.  That is, of course, a problem for a One-Hit Point Wonder.
A variant exists where you can't jump on the projectile mid-flight, but can use it after it's planted in a wall.
Compare Improvised Platform, Platform Battle, Stepping-Stone Sword, Stepping Stones in the Sky.
Often overlaps with the Cranium Ride. Most of these examples will also fall under Painfully Slow Projectile.
Examples:
- Ardy Lightfoot: In one level, your character has to jump up a long series of spears above a pit of lava, to reach more stable platforms above.
- A staple gameplay mechanic of the Bubble Bobble series, where the players use their bubbles not only to attack and trap enemies, but can use them as platforms to make bubble-assisted leaps.
- Super Mario Bros.
- Mario games in general, particularly Super Mario Bros. 2, where you can ride on top of Birdo's eggs (and have to do so to get past at least one level).
- Even better, you can pick up the egg in midair while you're riding it. Obviously, this cancels your forward momentum.

- Super Princess Peach features spear-riding.

- Mario games in general, particularly Super Mario Bros. 2, where you can ride on top of Birdo's eggs (and have to do so to get past at least one level).
- Contra III: The Alien Wars has one stage where you must jump from one air-to-air missile to another while they are headed at subsonic speed for the ultimate Bad Thing you are trying to destroy.
- In Super Metroid, Kraid shoots out claw things that you must jump on in order to reach his head, where his weak point is once he breaks the first ceiling and rises to full height.
- In Metroid: Zero Mission, he does something similar.
- I Wanna Be the Guy has two bosses that do this, both of them during their final phase: Mecha Birdo and Kraidgief (Their names are a big hint). Mecha Birdo's been spitting big egg platforms at you all battle, but during the final phase, the little warhead things on the tip become active and if you touch them, your One-Hit Point Wonder is dead. Kraidgief throws Blankas at you for his final phase that you have to jump on to get level with his head so you can shoot him.
- Mega Man (Classic)
- The Super Arrow powerup from Mega Man 5 allows Mega Man to fire a projectile which he can then ride.
- The 3rd castle boss in Mega Man 7 shoots out missiles that you can jump on. It's not strictly required to jump on them to hit him, but it makes it a lot easier.
- The first phase of the Wily Machine in Mega Man 10 shoots gigantic missiles at you at various speeds, which you must jump on to get enough height to shoot its weak point.
- Metal Gear
- Slightly used in Metal Gear Solid: The Twin Snakes, albeit in a cutscene rather than in gameplay: Snake leaps onto a rocket fired by a Hind D helicopter and then instantly bounces off of it to fire a Stinger missile at the cockpit.
- Metal Gear Rising: Revengeance has Raiden doing this during the second half of the Metal Gear RAY fight at the very beginning.

- Several levels of Jumper and Jumper Two require you to bounce of cannonballs to negotiate Bottomless Pits.
- The Prehistorik series uses wall-climbing version with spears.
- Mushroom Kingdom Fusion uses the wall-climbing version with Link's arrows.
- In the final level of Psychonauts, evil clowns spit swords at you, and the strategy is not to fight back but to get those swords lodged in a nearby rotating wheel (a reference to the classic circus knife-throwing act) and use them as swinging poles to reach the next platform. (During an Escort Mission, no less.)
- In Mitsume ga Tooru, Hosuke can jump on the Red Condor after throwing it.
- Sonic the Hedgehog
- Sonic Adventure: Happens during the Egg Viper fight.
- The boss of Aquatic Ruin in Sonic the Hedgehog 2 can only be reached if Sonic jumps onto the arrows fired by the totem poles after they embed themselves on something. This is done again with the boss of Lost Labyrinth in Sonic the Hedgehog 4.
- Shovel Knight: Used in Treasure Knight's stage, as well as whenever you fight Tinker Knight's Humongous Mecha form (If you use a couple fancy moves, though, it's unneccasary).
Non-video game examples:
- According to Axe Cop, one example of an awesome weapon would be "...a blade gun that shoots a giant blade, then you surf on it, and cut the bad guy's body off."
- Parodied in Chainsawsuit ("hard action squad returns").
- Jack Rakan of Mahou Sensei Negima! does it with a thrown BFS after locating a pair of enemies.
- Mercenary Tao in Dragon Ball uses this method of travel.
- One of the moments in Tai Lung's escape from his prison in Kung Fu Panda; although he couldn't catch or ride the gigantic crossbow bolts as they were shot at him, he did toss them back against the wall and swing between them to get out.
- One Piece:
- Admiral Kizaru has the ability to control, become, and move at the speed of, light. He likes to come ashore to an island by firing a cannonball and standing on it.
- Vander Decken travels quick distances by tossing a big chunk of something nearby and riding upon it to its destination. It helps that he has the ability to imbue anything he throws with homing ability.
- In one episode, Tigtone suddenly remembers that he has the ability to ride cannon balls right when he need it to escape from some pirates. He violates the laws of physics and sense even further by actually being able to steer them.


Join Bitly, the worlds leading link management platform.
Links are everywhere. Within every channel and every platform. Only Bitlinks are
powerful enough to allow you to see clear across the internet.
Shorten, brand and optimize your links across devices and channels. Share them via Bitly, API or
partner integrations
Track individual link analytics, gather audience intelligence and measure campaign performance
in one location.
Collect insights on your performance and
optimize your marketing efforts to better fit your
audience needs.


Auctioned By: {{auction.state.data.auctioneer}}
Base Price: {{auction.state.data.basePrice}}
Highest Bid:
{{auction.state.data.highestBid?auction.state.data.highestBid : 'No Bids'}}
Highest Bidder:
{{auction.state.data.highestBidder? auction.state.data.highestBidder : 'N/A'}}


Sometimes, I really want to photograph something that cannot feel by words. I was taking this photo on campus. Columbia University is 4 floor higher than the street height, so that you can oversee Broadway on campus.
My Personal Website is Now Open
Why Blog
Finally I decide to open my own customized personal blog website. The reason why I open such a nonesense is not because I want to say something powerfully, rather more, I just want to own my own website, as if the whole designing and coding is all by myself. Unfortunately, not. Nevertheless, I have the superuser root of the website. I could modify codes, adding new features into the site. It seems I have things to do when I feel bored at the mid-night.
How it Works
Actually, creating such a website is a little bit technical. At first, I thought website should be something like J2EE or .Net, at least involving database. I thought that a website with pure html is just document instead of website. But actually, static website, namely html, could be more powerful than what I have thought. Some tools like jekyll can automatically generate static website pages according to your posts. I am not trying to make you understand how this site works. I just want to let you know how powerful a static website could be.
Although pure html pages do not involve with database, it does not mean that the website cannot have fancy features that requires persistent data. We can add some third-part JS plug-in into our html pages. Actually, the plug-in providers have database to store and load your data. I use a fancy plug-in DISQUS that allows readers to add comments via facebook, twitter etc. The comments are not stored in my website, instead, it stores at DISQUS server. Comments data will be loaded everytime I call the plugin. So, static website is powerful!
If you are interested in creating your own blog at Github Pages, here is a short guide. You may use Jekyll to generate html pages from plain text (actually markdown format). You can use some fancy Jekyll themes contributed by awsome desingers. So the whole technical things are Github + Jekyll + Markdown. Buildnig your own blog is simple!
And, I am trying to persuade William Wang to use Jekyll or other generators to build his personal website at UMich, which looks like fancier. :P
Hack Online Flappy Bird
This is my first original video
I am using this video to test video-embeding function.
This is my first orignial video in my life. I happened to play the multi-player version of Flappy Bird online, a very popular mobile game for a time. I saw the source code and found that this game is purely made by javascript! How amazing! For the sake of respect, I hacked the code and gave the bird super power. I feel happy to see all of other birds fall down time after time, while my bird is free to cross the wall. I uploaded the video to BILIBILI and has been watched by thousands of people, and got nearly a hundred comments. That’s fun!


In this website you'll learn about SharePoint and Office 365
Find Out MoreSharePoint is a web-based collaborative platform that integrates with Microsoft Office. Launched in 2001,[5] SharePoint is primarily sold as a document management and storage system, but the product is highly configurable and usage varies substantially among organizations
Know More!
Office 365 is a line of subscription services offered by Microsoft as part of the Microsoft Office product line. The brand encompasses plans that allow use of the Microsoft Office software suite over the life of the subscription, as well as cloud-based software as a service products for business environments, such as hosted Exchange Server, Skype for Business Server, and SharePoint, among others.
Know More!Ready to start your next project with us? Give us a call or send us an email and we will get back to you as soon as possible!
my personal website


About Me
Hello! My name is Edita and I am a NYC based web developer. I utlize tools aquired from the Ohio State University Coding Bootcamp, including HTML, CSS, JavaScript, and Node.js to create aesthetic and user friendly websites and applications. Below are some recently completed projects.
Projects
Trippin' Around Columbus
Code Refactor
README Generator
Contact Info
- tel:<PHONE_NUMBER>
-<EMAIL_ADDRESS>- GitHub
- Resume


Forces of Nature (1999) Sandra Bullock, Ben Affleck, Maura Tierney, Steve Zahn, Blythe Danner, Ronny Cox, Joe Don Baker, Jack Kehler, Meredith Scott Lynn, David Strickland. Written by Marc Lawrence. Directed by Bronwen Hughes. 104 minutes. Rated PG-13, 3.5 stars (out of five stars)
Review by Ed Johnson-Ott, NUVO Newsweekly www.nuvo-online.com Archive reviews at http://us.imdb.com/M/reviews_by?Edward+Johnson-ott To receive reviews by e-mail at no charge, send subscription requests to<EMAIL_ADDRESS>In 1996, while working on a story about the film "Going All The Way," I served as an extra for a couple of days, affording me the opportunity to chat with the cast on a relaxed basis. During one conversation with Jeremy Davies, he noted that while we had talked several times, I had yet to speak with co-star Ben Affleck. "You really should connect with Ben," said the amiable, self-effacing actor, "he's got a lot going on. He co- wrote a movie that's coming out this Christmas and the screenplay is really terrific." I agreed to interview Affleck, but never got around to it. For a guy playing a charismatic jock, Affleck seemed flat, uninteresting and not worth the bother.
Even after the release of "Good Will Hunting," the wonderful film to which Davies referred, I didn't regret passing Affleck over. His growing status as a sex symbol left me mystified and, as an actor, he seemed merely serviceable. From "Armageddon" through "Shakespeare in Love," I simply didn't understand all the fuss about Ben Affleck, until about four hours ago, when I saw "Forces of Nature."
Affleck is sweet, disarming and utterly natural in the romantic road comedy. Working in turns with Sandra Bullock and Maura Tierney, he hits just the right notes to establish a winning chemistry with each. Thanks to fine performances from the uniformly strong cast, a surprisingly smart, unpredictable plot and some jazzy visuals, "Forces of Nature" overcomes pacing problems to emerge a winner.
Affleck plays Ben Holmes, a reserved copywriter about to marry the winsome Bridget ("NewsRadio's" Maura Tierney) at her parents' home in Savannah. Shortly after meeting fellow passenger Sarah (Sandra Bullock) at a New York airport, their plane blows an engine, skids off the runway and leaves a traumatized Ben determined to seek alternate transportation to the South. Sarah joins him and, faster than you can say "Planes, Trains and Automobiles," Ben's carefully arranged life is turned upside down.
Their contrived misadventures are amusing, but the rewards of "Forces of Nature" come from the characterizations. Writer Marc Lawrence deserves a great deal of credit for integrity. Elderly people play a large part in the story, but Lawrence never mocks or trivializes them. Ben and Sarah squabble, but never become shrill. The delightful Maura Tierney's Bridget, while playing a secondary role as the anxious bride-to-be in Savannah, is allowed to be a real person rather than just a plot device. And the ending, in open defiance of contemporary date-movie conventions, is both ethical and unexpected.
The film boasts some nice eye candy as well. A couple scampers through a tire graveyard while hail falls in gorgeous slow-motion. Later, the style is successfully revisited during a enchanting overhead shot of slo-mo raindrops. Perhaps the loveliest scene occurs late in the film, when two characters have a key exchange while a wind-storm surrounds them in a otherworldly swirl straight out of a fairy tale.
In addition to Affleck's disarming performance, Bullock finally makes amends for the godawful "Speed 2: Cruise Control." As a damaged soul desperately clinging to a free-spirit persona, her work here could aptly be subtitled "How Sandra Got Her Groove Back." Beneath her sprightly characterization lies an air of melancholy that gives her a resonance lacking in most of her recent films. It's nice to see Bullock back on track again.
Affleck and Bullock are terrific together, particularly in a riotous strip scene in a gay bar that manages to be funny without pandering or reinforcing stereotypes. Almost as good is a segment where the cash- strapped couple race to pick up some money wired to a telegraph office, only to find the building engulfed in flames. "I think I'll just sit here, '' Ben chuckles, "and wait for the locusts to come."
The production has a few too many MTV moments, and the film bogs down in spots, crossing the line between leisurely and languid, but the lapses are forgivable due to the fine blend of humor and intelligence. Along with the laughs is a quiet examination of the nature of love and commitment, presented with welcome understatement. When the film reaches its climax, you may be surprised with the resolution, but you'll certainly respect it.
"Forces of Nature" combines the sensibility of vintage screwball comedies with a maturity rarely seen on screen these days. And it provides Ben Affleck with a whale of a showcase for his talents. In the unlikely event of my chatting with Jeremy Davies again, one thing's for sure: if he suggests that I talk with a talented unknown, I'll take his advice.
© 1999 Ed Johnson-Ott
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


C/C++ Coding Style & Standards
Coding practices for embedded development
Table-of-Contents
2.1
No dynamic
memory allocation
2.2
Minimize the
public interface of every class.
2.3
Use const wherever possible.
2.8
Do not use
preprocessor macros
2.9
Conditionally
compiled code is not allowed within a function body
2.11 Copy constructor and
assignment operator
2.12 Pass/Return objects by
reference
2.13 Protect header file with #ifndef read-once latch.
2.14 Minimize the #include statements
in your header files.
2.15 Avoid the global namespace
unless absolutely necessary.
3.1.3 Use Doxygen Comments in
Header Files
3.2.1 Classes, Methods, Variables
This document defines the C++ coding standards and style for developing embedded software. Code standards and code style are often mixed together, which is unfortunate. Standards should be reserved for coding practices which bear directly on the reliability of code. Violating a precept of a code standard puts your code in jeopardy of error. Style is another matter. It deals with issues like formatting and naming conventions.  And it is mainly a matter of taste.
The coding standards presented here are specifically tailored to working in an embedded environment – were the robustness and reliability of the software is critical. It is unacceptable for embedded software to periodically reboot because of exhausted/squander resources (such as no memory available).
The establishment of a common style will facilitate understanding and maintaining code developed by more than one programmer as well as making it easier for several people to cooperate in the development of the same program. Using a consistent coding style throughout a particular module, package, or project is important because it allows people other than the author to easily understand and (hopefully) maintain the code. Most programming styles are somewhat arbitrary, and this one is no exception.
This document is a selective collection of coding style and standards excerpts from numerous white papers and publications. Discussion of style and standards is a long honored tradition in software development. This document is attempt by the author to define a minimum set of style and standards that are helpful for embedded development, but at the same time practical to implement. The idea here is to maximize the “bang for the buck”. Coding style and standards require discipline on the part of the developers to be followed. The more “painful” an organization’s style and standards are, the less likely that the developers will faithfully follow the procedures. Process and its sibling documentation are some of the first casualties of schedule pressures. The moral of the story is to keep your style and standards to a manageable set – especially in time of crisis.
The standards documented here are targeted at reducing errors while developing code. This includes both compile time and run time errors. For the standards to be effective, strict enforcement is required. The following standards should not be violated. Every time a rule is broken, it must be clearly documented in the code. This documentation serves two purposes. First it provides crucial information to other developers when maintaining the code. Second, it forces the original programmer to think about/fully justify why the standards do not apply.
To prevent memory leaks and fragmentation – no dynamic memory allocation is allowed. The application may allocate memory (from the heap) at start-up – but not once the system is “up and running.” This practice guarantees the system will not fail over time due to lack of memory.
For objects that must be dynamically created/deleted – the application programmer is require to pre-allocate a memory pool (on a per object type basis) that will be used to construct object at run-time. This requires the developer to use the “placement new” operator to create an object. To delete an object, the developer must explicitly call the object’s destructor and then return the memory back its associated memory pool.
Note: It goes without saying that malloc(), realloc()) and free() shall not ever be used.
Do
not make data members public. Keep member functions private
or protected
unless they are truly intended to be part of the
public interface.
const
wherever possible.
const
ness is next to Godliness. Every possible modification
of data should occur according to explicit relaxation of default read-only
policy
. Think const
. Member functions should be const
by default. Only when you have a clear, explicit reason should you omit the const
modifier on member functions.
Take every possible measure to avoid type casting. Errors caused by casts are among the most pernicious, particularly because they are so hard to recognize. Strict type checking is your friend – take full advantage of it!
Code that compiles with warnings will not be accepted for integration. Also while developing code eliminate the warnings as-soon-as-possible, as the warnings tend to be the source of logic and run-time errors. NOTE: You should always compile with the compiler switch that treats warnings as errors.
Do no write explicit constants into code, except to establish identifiers to represent them. The exception to the rule is the constant “0”. Always use the C++ keywords true and false for Boolean values.
Always use 0, never NULL, in C++. The “Annotated C++ Reference Manual”, by Ellis and Stroustrup [Addision-Wesley, 1990] does not guarantee that the defined constant NULL is compatible with all pointers types. Some implementations define NULL as (void*)0, which cannot be assigned to another pointer type without a cast.
The
Preprocessor knows nothing about C++. Don't use preprocessor macros to do
what C++ can do. Do not use #define
to set the value of a constant or create an “inline
function”. Use enumerations or const
variables, and/or inline functions instead of
preprocessor macros.
Do not use the preprocessor #ifdef/#ifndef constructs to support platform/hardware/system dependent code. All platform/hardware/system dependent code must be isolated into individual files that are specific to the dependencies. This means the developer – at the design stage – must identify and plan for handling these dependencies!
If a class has a virtual function, declare the destructor virtual, too.
Always
declare a copy constructor, assignment operator, and the destructor method for
a class that has responsibility for dynamic storage. The default
copy operation provided natively by the compiler only provides a ‘bit-wise’
copy. This default operation does not make a copy of whatever is
dynamically stored in the class. By explicitly implementing the copy and
assignment methods the developer is able to provide a “deep” copy of the class.
The default destructor method will not free any dynamically
allocated memory. The copy/assignment/destructor operations are responsible for
correctly copying the dynamic elements of the class.
NOTES:
1. Strict adherence to the “No dynamic memory
allocation” rule makes this rule moot.
2. See the Rule of 3 for additional information.
References provide stricter semantics than raw pointers (i.e. a reference requires that the object it “points to” exists – where a raw pointer does not). If there interface semantics are such that the object must always exist – use references in the interface even if the internal implementation is using pointers. By using references in interfaces whenever possible, the compiler can enforce more of the semantics of the interface.
#
ifndef
read-once
latch. Use the following template for the read-once latch:
#ifndef Namespace_ClassName_h_
#define Namespace_ClassName_h_
…
#endif
For example
#ifndef Jcl_InputStreamApi_h_
#define Jcl_InputStreamApi_h_
…
#endif
Headers files should only include those (header) files that are required for header file to compile. Do not include files that are only used by the associated .cpp file. The #include statements in your header files define the dependencies of the file –fewer the dependencies the better.
It should be obvious why you want to avoid polluting the global namespace. If you ever “import” code from a developer, department, third party vendor, etc. there is potential for collision in the global namespace. If a collision occurs – someone’s code must change. Modifying “proven” code is bad thing! The two common options to avoiding polluting the global namespace are: 1) Nest enumerations, constants, helper classes, etc. inside of existing classes. 2) Use the C++ namespace feature. Did we mention using C++ namespaces?
The intent of the style guide is to establish a “style baseline” that all developers are required to follow. This baseline provides a consistence across the source code files that aids in reading/maintain the code. In addition, following a common programming style will enable the construction of tools that incorporate knowledge of these standards to help in the development and maintenance of the code.
This guide specifies only basic requirements – the individual programmer is allowed to impose his/her own style/preferences on top of these requirements. There are only two absolute rules to observe when it comes to “creating your own” coding style. The first rule of coding style is consistency:
Establish a style and stick to it.
The second rule of style is tolerance:
When you must modify code written by others, conforming to a different style, adopt that style, do not convert the code to your style.
|
Rule: |
Header files must be completely documented. This means every class, method, and data member must have comments. Header files describe the interfaces of the system, and as such, should contain all the information a developer needs to use/understand the interface. |
|
Rule: |
The quantity/quality of the comments in a CPP file is left to the individual developers to decide. If the corresponding header file is completely documented, comments in the CPP file add little value. |
|
Rec: |
Add comments whenever you feel that the code is complex, non-standard, and/or clever. Remember if you want the luxury of other people maintaining your code – they must be able to understand it! |
|
Rec: |
Document your code so that an external tool can extract the
information stored in your header file comments. For example doxygen is a freely available tool that
are able to generate online (HTML) and offline (Postscript, man pages,
etc) documentation from the raw source code.
Detailed information doxygen
can be found at: http://www.doxygen.org. The following are examples of doxygen comment styles. /**
This abstract class … */ class
FooBar { public:
/// Enables the Widget to begin sending data
virtual void enableWidget() =0; }; |
|
|
General |
|
Rule: |
CamelCase is used for all names (except for
macro/preprocessor symbols) |
|
Rule: |
Namespaces start with an Upper case letter, e.g. MyNamespace |
|
Rule: |
Classes start with an Upper case letter, e.g. class MyClassFoo {..} |
|
Rule: |
Class methods start with a lower case letter, e.g.
void myMethodBar(..);. |
|
Rec: |
Class data member names start with a leading
underscore followed by a lower case character, e.g int _myCount;. |
|
Rule: |
Typedefs and/or structs start
with a Upper case letter. |
|
Rec: |
Do not abbreviate names/words; long names are
preferred over cryptic abbreviations. |
|
|
Macro/Preprocessor |
|
Rule: |
Macro/Preprocessor symbols are all Upper case. |
|
Rule: |
In lieu of CamelCase, an
underscore is always used to separate words |
|
Rule: |
Macro/Preprocessor symbols must include the containing namespace(s), e.g. ENABLE_JCL_MT_SYSTEM_TRACE |
|
Rule: |
Header latch shall be Namespace plus file name
(using an underscore for the namespace separator) plus a trailing underscore,
e.g. #ifndef JCL_MT_SYSTEM_TRACE_H_Rule: |
|
|
Enums |
|
Rec: |
Enum symbols start with a lower case ''e'', followed
by all upper case letters and/or numbers, e.g. eRED, eORANGE |
|
Rule: |
In lieu of CamelCase, an
underscore is always used to separate words. |
|
Rule: |
If the enum is ''not''
contained within a class, then each symbol name must include the containing namespace(s), e.g. eJCL_MT_SYSTEM_RED |
|
|
Function/Method Names |
|
Rule: |
Function Names contain a verb |
|
Rec: |
Functions that perform in-thread initialization of an object shall be named start(...) |
|
Rec: |
Functions that perform in-thread shutdown of an object shall be named stop(...) |
|
Rec: |
Functions that invoke ITC
(inter-thread-communication) initialization (e.g. invoke initialization
across thread boundaries) shall be named open(...) |
|
Rec: |
Function that perform ITC shutdown (e.g.
reclaiming resources across thread bounders) shall be named close(...) |
|
|
Classes |
|
Rule: |
Class Names are nouns |
|
|
Namespaces |
|
Rule: |
Namespace names are nouns |
|
Rec: |
Namespace names should be singular, e.g. Use Jcl::Container instead of Jcl::Containers. |
|
Rec: |
Namespace names should be single words |
|
|
|
|
Rule: |
Almost all OS/Platform support ‘long’ filenames – use them. Do not ‘encrypt’ you file and directory names into an arbitrary 8.3 format. |
|
Rec: |
File names shall be named after the primary/principle class contained
in the file. |
|
Rec: |
Directory names shall be named after/match namespace names. It is okay to have directories that do not map 1-to-1 with namespace, but this should be the minority use case. |
|
Rec: |
Directories are your friend. Do not hesitate to create directories even if they only contain other directories or a single file. Directories are a great tool for organizing and “naming” dependencies between source code files and packages. |
|
Rule: |
Tabs stops will be set to 4! The actual use of spaces vs. tabs when indenting is left up to the individual. |
|
Rule: |
When modifying someone else’s code – follow the original author’s tab style – whether or not it agrees with your own personal preference. |
Sidebar: It is amazing at how “religious” programmers can get about the use of tabs vs. spaces. I have met more than one programmer who would rather be fired than change his tab style. The subject of tab style ranks up there with the topics of curly braces and text editors for “religious fervor.”
|
Rec: |
The flow control primitives if, else, while, for and do should be
followed by a block, even if it is an empty block. For example: while( /* do something */ ) // Bad ; while( /* do something */ ) // Good { } while( /* do something */ ){ // Good } |
|
Rec: |
The block following a flow control primitive
should always be bounded by brackets even it the
block contains only one statement. For example: if( isOpened() )
// Bad foobar(); if( isOpened()
) // Good { foobar(); } if( isOpened() )
{ // Good foobar(); } |


Michael joined the CoRE Lab in Fall 2018. He is currently a PhD student at UCF (Civil Engineering PhD). He has a background in Civil Engineering from Addis Ababa University (Ethiopia) and holds a master’s in Water Science and Engineering (Erasmus Mundus Master’s in Flood Risk Management). Shortly before joining UCF, he has been a research intern at the Danish Hydraulic Institute (DHI). Currently, he is working on a NASA funded project that focuses on the use of data-driven models to simulate the past, present, and future storm surges and their associated impacts. Some of his research interests include the application of statistical, machine learning and deep learning models on water resource engineering problems and the coupling of data-driven models with numerical models.
Perform data mining for South Florida hydraulic projects
Short-term waterlevel forecasting with machine learning
Set up and evaluate data assimilation within an existing operational forecast system
Carried out hydrological and hydrodynamic modelling
This study lays the foundation for investigating the changes in frequency/intensity of extreme sea levels for which SLR is a main driver. It also shows that data-driven models can be used as an alternative to simulate global storm surges, better yet, it calls for the coupling of data-driven and numerical models for a robust storm surge modeling.


Software Testing Foundations
Growing Object-Oriented Software, Guided by Tests
Deep Dive into OWASP Top 10 and Software Security
Design Like a Pro
Deep Dive into Caching, Memoization and Redis.
Science of Great UI.
No Silver Bullet
Little Manual of API Design


{% extends "home/base.html" %} {% load staticfiles %} {% load i18n %} {% block content %}
Introduce the new email with which you want to associate your GPCRmd account.
You need access to the new address to complete the process.
For more information on this form, see the docs.
{% trans 'New Adress:' %}
{{ err }}


This paper presents a taxonomic, ecological and phytogeographic study of the
flora of the longest Adriatic beach - Velika plaža, its vicinity, and the island of Ada Bojana in Ulcinj.
According to field research and a literature review, there are 962 taxa (species and subspecies) in
the area of Velika plaža and the island of Ada Bojana, which represents one fourth of the total Montenegrin flora.
The family with the highest number of taxa is Poaceae, while the genus with the largest number of taxa is Euphorbia.
Terophytes and hemicryptophytes are dominant in the biological spectrum. Chorological analysis has
shown that the Mediterranean-Sub-Mediterranean areal type is the most prominent.
There are 12 NATURA 2000 habitats and several associations that belong to a particular type of
habitat within the area of Velika plaža and the island of Ada Bojana. Endemic flora is represented by 16 species.
Thirty-six relict species have been recorded, as well as 37 species under legal protection within the research area.
Diversity and endemism centers of the vascular flora in
Montenegro are high-mountain areas, and the presence of
1540 taxa certainly points to the great foristic diversity in the
Mediterranean area of Montenegro (Caković and Milosevic
2103). Regarding the coastal region of Montenegro there are
several botanically signifcant sites (Velika plaža, Tivatska
solila, Ulcinjska Solana ...) that represent unique nature areas
that are distinguished by a variety of plant species and com-
munities, some of which are limited only to these areas.
Velika plaža and the island of Ada Bojana, due to the
presence of psammo- halophytic vegetation that has existed
there since ancient times, has attracted the attention of re-
search botanists. From the first foristic data published by
A. Baldacci in 1898 for Ulcinj and its surroundings (Pulević
and Vincek 2004) until 2011 when our own research began,
a considerable number of papers have been published con-
taining information on the flora and vegetation of this area.Research conducted by most botanists at the end of the 19th
and early 20th centuries (Baldacci 1891, 1898, 1900, 1910;
Horak 1900; Rohlena 1902a, 1902b, 1904, 1942; Adamović
1913) was focused on the surroundings of Ulcinj. the larg-
est number of floristic data for Ulcinj and its surroundings
were provided by Josef Rohlena (Rohlena 1902a, 1902b,
1903, 1904, 1911, 1923, 1931, 1933, 1936, 1942) and Lujo
Adamović (Adamović 1911, 1912a, 1912b, 1913). In the
second half of the twentieth century and early XXI century,
several botanists occasionally engaged in exploration of this
area, with an emphasis on the flora and vegetation of the
sandy Velika plaža and the island of Ada Bojana (Fukarek
1954; Janković and Bogojević 1965; Trinajstić 1989; Mijović
1994; Lakušić et al. 2004; Petrović and Vuksanović 2005;
Mijović et al. 2006, 2012; Vuksanović and Petrović 2007;
Bubanja and Stevanović 2013; Caković et al. 2013, 2014;
Bubanja et al. 2016; Nobis et al. 2017; Stešević and Bubanja
2017; Stešević et al. 2017a, 2017b; Šilc et al. 2016, 2017.


Preparation time
30 mins to 1 hour
Cooking time
1 to 2 hours
Serves
Makes 1 large tart
Dietary
Layers of rich chocolate filling and homemade jam is topped with shards of praline for extra crunch.
For this recipe you will need a 25cm/10in fluted tart tin, a sugar thermometer and a food processor.
Preheat the oven to 200C/180C Fan/Gas 6. Grease a 25cm/10in loose bottomed tart tin.
For the chocolate pastry, add the dry ingredients to a food processer and pulse briefly to mix. Add the butter and pulse until the mixture resembles breadcrumbs. Add the beaten egg and pulse until the dough comes together (do not over process).
Briefly knead the dough, then wrap in cling film and place on a plate in the freezer for a few minutes.
Roll out the pastry to 3mm thick and use it to line the tart tin. Prick all over with a fork and place in the freezer for 10 minutes.
Line the pastry case with baking parchment and fill with baking beans. Bake for 12 minutes, then remove the beans and parchment, brush with the egg wash and return to the oven for 5 minutes. Set aside to cool in the tin.
For the filling, heat the butter in a saucepan over a low heat. When melted add the dark chocolate and stir to combine. Stir in the sugars, syrup and salt. Add the soured cream, cocoa powder and egg yolks and mix until well combined.
Pour into the pastry case and bake for 12 minutes, then turn the tart around and bake for a further 10 minutes. Set aside to cool on a wire rack for a few minutes then transfer to the fridge to chill.
For the raspberry coulis, break up the raspberries in a food processor and pass through a sieve to remove the seeds. Heat the purée, sugar and pectin in a saucepan over a medium heat until it reaches 104C on a sugar thermometer. Allow to cool and thicken slightly before pouring onto the chilled pie filling. Chill in the fridge until ready to serve.
For the pecan praline, place the pecans on a baking tray and roast for about 8 minutes. Set aside to cool. Meanwhile line a baking tray with non-stick baking paper or a silicone mat.
In a medium saucepan, dissolve the caster sugar in 50ml/2fl oz water and heat to 160C on a sugar thermometer. Add the pecans and coat in the caramel, then turn out onto the lined baking tray to cool completely.
Once cooled, chop the praline and arrange on top of the tart. Serve cold.
You need JavaScript to view this clip.
How to blind bake pastry
You need JavaScript to view this clip.
Using a food processor to pulse ingredients


The goal of gendercoder is to allow simple re-coding of free-text gender responses. This is intended to permit representation of gender diversity, while managing troll-responses and the workload implications of manual coding.
This package is not on CRAN. To use this package please run the following code:
devtools::install_github("ropenscilabs/gendercoder")
library(gendercoder)
The gendercoder package permits the efficient re-coding of free-text gender responses within a tidyverse pipeline. It contains two in-built output dictionaries, a default broad
dictionary which corrects spelling and standardises terms while maintaining the diversity of responses and a narrow
dictionary which contains only three gender categories, “male”, “female”, and “sex and gender diverse”.
The core function, gender_recode()
, takes 3 arguments,
gender
the vector of free-text gender,
dictionary
the preferred dictionary, and
fill
a logical indicating whether original values should be carried over if there is no match.
Basic usage is demonstrated below.
library(gendercoder)
tibble(gender = c("male", "MALE", "mle", "I am male", "femail", "female", "enby")) %>%
mutate(broad_gender = recode_gender(gender, dictionary = broad, fill = TRUE),
narrow_gender = recode_gender(gender, dictionary = narrow, fill = FALSE)
)
#> 1 results not matched from the dictionary have been filled with the user inputted values
#> # A tibble: 7 x 3
#> gender broad_gender narrow_gender
#> <chr> <chr> <chr>
#> 1 male male male
#> 2 MALE male male
#> 3 mle male male
#> 4 I am male I am male <NA>
#> 5 femail female female
#> 6 female female female
#> 7 enby non-binary sex and gender diverse
This package is a reflection of cultural context of the package contributors we welcome issues and pull requests to make the package more inclusive and/or suitable for a broader range of cultural contexts. We particularly welcome addition of non-English dictionaries or of other genderdiverse responses to the broad and narrow dictionaries.
Please cite this package as:
Kothe, E., Beaudry, J., Singleton Thorn, F., & McGuire, R. (2018). gendercoder (<IP_ADDRESS>00) Computersoftware. rOpenSci. https://docs.ropensci.org/gendercoder/


|
C++ High Level Types
This library provides commonly used high level types and methods for easier and better coding.
|
Encapsulates std::string and adds high level methods. More...
#include <hstring.h>
Public Member Functions | |
| String () | |
| Empty constructor. | |
| String (const char c) | |
| Basic constructor. More... | |
| String (const char c, const int times) | |
| Basic constructor. More... | |
| String (const char *string) | |
| Copy constructor. More... | |
| String (const String &string) | |
| Copy constructor. More... | |
| String (const char *string, const int length) | |
| Copy constructor. More... | |
| String (const String &string, const int length) | |
| Copy constructor. More... | |
| String (const bool b) | |
| Type constructor. More... | |
| String (const short s) | |
| Type constructor. More... | |
| String (const unsigned short s) | |
| Type constructor. More... | |
| String (const int i) | |
| Type constructor. More... | |
| String (const unsigned int i) | |
| Type constructor. More... | |
| String (const int64_t i) | |
| Type constructor. More... | |
| String (const uint64_t i) | |
| Type constructor. More... | |
| String (const float f) | |
| Type constructor. More... | |
| String (const float f, int precision) | |
| Type constructor. More... | |
| String (const double d) | |
| Type constructor. More... | |
| String (const double d, int precision) | |
| Type constructor. More... | |
| ~String () | |
| Destructor. | |
| void | set (const char c) |
| Sets a character as C-type string. More... | |
| void | set (const char c, const int times) |
| Sets a character as C-type string. More... | |
| void | set (char *string) |
| Sets String as C-type string. More... | |
| void | set (char *string, const int length) |
| Sets String as C-type string. More... | |
| void | set (const char *string) |
| Sets String as C-type string. More... | |
| void | set (const char *string, const int length) |
| Sets String as C-type string. More... | |
| void | set (const String &string) |
| Sets String as other String. More... | |
| void | set (const String &string, const int length) |
| Sets String as other String. More... | |
| void | set (const bool b) |
| Sets String as bool. More... | |
| void | set (const short s) |
| Sets String as short. More... | |
| void | set (const unsigned short s) |
| Sets String as unsigned short. More... | |
| void | set (const int i) |
| Sets String as int. More... | |
| void | set (const unsigned int i) |
| Sets String as unsigned int. More... | |
| void | set (const int64_t i) |
| Sets String as 64-bit int. More... | |
| void | set (const uint64_t i) |
| Sets String as unsigned 64-bit int. More... | |
| void | set (const float f) |
| Sets String as float. More... | |
| void | set (const float f, int precision) |
| Sets String as float. More... | |
| void | set (const double d) |
| Sets String as double. More... | |
| void | set (const double d, int precision) |
| Sets String as double. More... | |
| void | add (const char c) |
| Converts char into a String and concatenates the new String at the end of this one. More... | |
| void | add (const char c, int times) |
| Converts char into a String and concatenates the new String at the end of this one. More... | |
| void | add (char *string) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | add (char *string, int length) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | add (const char *string) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | add (const char *string, int length) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | add (const String &string) |
| Concatenates a String at the end of this one. More... | |
| void | add (const String &string, int length) |
| Concatenates a String at the end of this one. More... | |
| void | add (const bool b) |
| Converts bool into a String and concatenates the new String at the end of this one. More... | |
| void | add (const short s) |
| Converts short into a String and concatenates the new String at the end of this one. More... | |
| void | add (const unsigned short s) |
| Converts unsigned short into a String and concatenates the new String at the end of this one. More... | |
| void | add (const int i) |
| Converts int into a String and concatenates the new String at the end of this one. More... | |
| void | add (const unsigned int i) |
| Converts unsigned int into a String and concatenates the new String at the end of this one. More... | |
| void | add (const int64_t i) |
| Converts 64-bit int into a String and concatenates the new String at the end of this one. More... | |
| void | add (const uint64_t i) |
| Converts unsigned 64-bit int into a String and concatenates the new String at the end of this one. More... | |
| void | add (const float f) |
| Converts float into a String and concatenates the new String at the end of this one. More... | |
| void | add (const float f, int precision) |
| Converts float into a String and concatenates the new String at the end of this one. More... | |
| void | add (const double d) |
| Converts double into a String and concatenates the new String at the end of this one. More... | |
| void | add (const double d, int precision) |
| Converts double into a String and concatenates the new String at the end of this one. More... | |
| String | lowered () const |
| Transforms String into lower case. More... | |
| String | uppered () const |
| Transforms String into upper case. More... | |
| String | reversed () const |
| Reverses String. More... | |
| String | utf8Reversed () const |
| Reverses UTF-8 string. More... | |
| String | trimmed (const char c=' ') const |
| Left-trims and right-trims String from a specific character. More... | |
| String | trimmedLeft (const char c=' ') const |
| Left-trims String from a specific character. More... | |
| String | trimmedRight (const char c=' ') const |
| Right-trims String from a specific character. More... | |
| void | replace (const String &what, const String &withWhat) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const String &what, const String &withWhat, int times) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const String &what, const char *withWhat) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const String &what, const char *withWhat, int times) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const String &what, const char withWhat, int times=1) |
| Replaces occurrences of a substring with a character. More... | |
| void | replace (const char *what, const String &withWhat) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const char *what, const String &withWhat, int times) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const char *what, const char *withWhat) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const char *what, const char *withWhat, int times) |
| Replaces occurrences of a substring with another substring. More... | |
| void | replace (const char *what, const char withWhat, int times=1) |
| Replaces occurrences of a substring with a character. More... | |
| void | replace (const char what, const String &withWhat) |
| Replaces occurrences of a character with a substring. More... | |
| void | replace (const char what, const char *withWhat) |
| Replaces occurrences of a character with a substring. More... | |
| void | replace (const char what, const char withWhat, int times=1) |
| Replaces occurrences of a character with a substring. More... | |
| void | replace (int position, int count, const String &string) |
| Replaces a sequence of characters with a substring. More... | |
| void | replace (int position, int count, const char *string) |
| Replaces a sequence of characters with a substring. More... | |
| void | replace (int position, int count, const char character, int times=1) |
| Replaces a sequence of characters with a substring. More... | |
| String | replaced (const String &what, const String &withWhat) const |
| Replaces occurrences of a substring with another substring. More... | |
| String | replaced (const String &what, const char *withWhat) const |
| Replaces occurrences of a substring with another substring. More... | |
| String | replaced (const String &what, const char withWhat, int times=1) const |
| Replaces occurrences of a substring with a character. More... | |
| String | replaced (const char *what, const String &withWhat) const |
| Replaces occurrences of a substring with another substring. More... | |
| String | replaced (const char *what, const char *withWhat) const |
| Replaces occurrences of a substring with another substring. More... | |
| String | replaced (const char *what, const char withWhat, int times=1) const |
| Replaces occurrences of a substring with a character. More... | |
| String | replaced (const char what, const String &withWhat) const |
| Replaces occurrences of a character with a substring. More... | |
| String | replaced (const char what, const char *withWhat) const |
| Replaces occurrences of a character with a substring. More... | |
| String | replaced (const char what, const char withWhat, int times=1) const |
| Replaces occurrences of a character with a substring. More... | |
| String | replaced (int position, int count, const String &string) const |
| Replaces a sequence of characters with a substring. More... | |
| String | replaced (int position, int count, const char *string) const |
| Replaces a sequence of characters with a substring. More... | |
| String | replaced (int position, int count, const char character, int times=1) const |
| Replaces a sequence of characters with a substring. More... | |
| void | insertAt (int position, const String &string) |
| Inserts a sequence of characters into the String. More... | |
| void | insertAt (int position, const char *string) |
| Inserts a sequence of characters into the String. More... | |
| void | insertAt (int position, const char character, int times=1) |
| Inserts a character into the String. More... | |
| String | insertedAt (int position, const String &string) const |
| Inserts a sequence of characters into the String. More... | |
| String | insertedAt (int position, const char *string) const |
| Inserts a sequence of characters into the String. More... | |
| String | insertedAt (int position, const char character, int times=1) const |
| Inserts a character into the String. More... | |
| void | randomize () |
| Randomizes the String's characters. | |
| void | utf8Randomize () |
| Randomizes the UTF-8 String's characters. | |
| String | randomized () const |
| Creates a randomized copy of the String's characters. More... | |
| String | utf8Randomized () const |
| Creates a randomized copy of the String's characters. More... | |
| bool | split (const char delimiter, String &outLeft, String &outRight) const |
| Splits the String with the delimiter once. More... | |
| bool | split (const char *delimiter, String &outLeft, String &outRight) const |
| Splits the String with the delimiter once. More... | |
| bool | split (const String &delimiter, String &outLeft, String &outRight) const |
| Splits the String with the delimiter once. More... | |
| Array< char > | split () const |
| Splits all characters in the String. More... | |
| Array< String > | split (const char delimiter, int times=-1, bool removeEmpty=false) const |
| Splits the String with the delimiter. More... | |
| Array< String > | split (const char *delimiter, int times=-1, bool removeEmpty=false) const |
| Splits the String with the delimiter. More... | |
| Array< String > | split (const String &delimiter, int times=-1, bool removeEmpty=false) const |
| Splits the String with the delimiter. More... | |
| bool | rsplit (const char delimiter, String &outLeft, String &outRight) const |
| Reverse splits the String with the delimiter once. More... | |
| bool | rsplit (const char *delimiter, String &outLeft, String &outRight) const |
| Reverse splits the String with the delimiter once. More... | |
| bool | rsplit (const String &delimiter, String &outLeft, String &outRight) const |
| Reverse splits the String with the delimiter once. More... | |
| Array< String > | rsplit (const char delimiter, int times=-1, bool removeEmpty=false) const |
| Reverse splits the String with the delimiter. More... | |
| Array< String > | rsplit (const char *delimiter, int times=-1, bool removeEmpty=false) const |
| Reverse splits the String with the delimiter. More... | |
| Array< String > | rsplit (const String &delimiter, int times=-1, bool removeEmpty=false) const |
| Reverse splits the String with the delimiter. More... | |
| int | indexOf (const char c, int start=0) const |
| Finds the first index of a character. More... | |
| int | indexOf (const char *string, int start=0) const |
| Finds the first index of a character. More... | |
| int | indexOf (const String &string, int start=0) const |
| Finds the first index of a character. More... | |
| int | utf8IndexOf (const char c, int start=0) const |
| Finds the first index of a character. More... | |
| int | utf8IndexOf (const char *string, int start=0) const |
| Finds the first index of a character. More... | |
| int | utf8IndexOf (const String &string, int start=0) const |
| Finds the first index of a character. More... | |
| int | rindexOf (const char c, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | rindexOf (const char *string, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | rindexOf (const String &string, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | utf8RindexOf (const char c, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | utf8RindexOf (const char *string, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | utf8RindexOf (const String &string, int start=-1) const |
| Finds the first index of a character searching from the back. More... | |
| int | indexOfAny (const char *string, int start=0) const |
| Finds the first index of any character. More... | |
| int | indexOfAny (const String &string, int start=0) const |
| Finds the first index of any character. More... | |
| int | utf8IndexOfAny (const char *string, int start=0) const |
| Finds the first index of any character. More... | |
| int | utf8IndexOfAny (const String &string, int start=0) const |
| Finds the first index of any character. More... | |
| int | rindexOfAny (const char *string, int start=-1) const |
| Finds the first index of any character searching from the back. More... | |
| int | rindexOfAny (const String &string, int start=-1) const |
| Finds the first index of any character searching from the back. More... | |
| int | utf8RindexOfAny (const char *string, int start=-1) const |
| Finds the first index of any character searching from the back. More... | |
| int | utf8RindexOfAny (const String &string, int start=-1) const |
| Finds the first index of any character searching from the back. More... | |
| int | count (const char c) const |
| Counts the occurrences of a substring. More... | |
| int | count (const char *string) const |
| Counts the occurrences of a substring. More... | |
| int | count (const String &string) const |
| Counts the occurrences of a substring. More... | |
| bool | startsWith (const char *string) const |
| Checks if the string starts with a specific string. More... | |
| bool | startsWith (const String &string) const |
| Checks if the string starts with a specific string. More... | |
| bool | endsWith (const char *string) const |
| Checks if the string ends with a specific string. More... | |
| bool | endsWith (const String &string) const |
| Checks if the string ends with a specific string. More... | |
| bool | contains (const char c) const |
| Checks if String contains character. More... | |
| bool | contains (const char *string) const |
| Checks if String contains C-type string. More... | |
| bool | contains (const String &string) const |
| Checks if String contains another String. More... | |
| bool | containsAny (const char *string) const |
| Checks if String contains any character from a C-type string. More... | |
| bool | containsAny (const String &string) const |
| Checks if String contains any character from another String. More... | |
| bool | containsAll (const char *string) const |
| Checks if String contains all characters from a C-type string. More... | |
| bool | containsAll (const String &string) const |
| Checks if String contains all characters from another String. More... | |
| bool | isDigit () const |
| Checks if all elements of the string contain only one digit '0'-'9'. More... | |
| bool | isInt () const |
| Checks if the string is an integer. More... | |
| bool | isFloat (bool requireDot=true) const |
| Checks if the string is a float. More... | |
| bool | isNumber () const |
| Checks if the string is a number, positive or negative integer or float. More... | |
| bool | isHex () const |
| Checks if the string is a hexadecimal number, case ignored. More... | |
| bool | isAscii () const |
| Checks if string contains ASCII only characters. More... | |
| String | subString (int start, int count) const |
| Creates a substring from this String. More... | |
| String | subString (int start, int count, int step) const |
| Creates a substring from this String. More... | |
| String | utf8SubString (int start, int count) const |
| Creates a substring from UTF8-indexed characters. More... | |
| int | size () const |
| Gets the byte length of the String. More... | |
| int | utf8Size () const |
| Gets the character length of the String. More... | |
| String | toHex () const |
| Creates a string with characters converted using the %02X format. More... | |
| unsigned int | unhex () const |
| Creates an unsigned int from hex value string. More... | |
| String | operator() (int index) const |
| Returns character at position in form of String. More... | |
| String | operator() (int start, int count) const |
| Creates a substring. More... | |
| String | operator() (int start, int count, int step) const |
| Creates a substring. More... | |
| char & | operator[] (int index) |
| Returns character at position. More... | |
| const char & | operator[] (int index) const |
| Returns character at position. More... | |
| operator bool () const | |
| Casts String into bool. More... | |
| operator short () const | |
| Casts String into short. | |
| operator unsigned short () const | |
| Casts String into unsigned short. | |
| operator int () const | |
| Casts String into int. | |
| operator unsigned int () const | |
| Casts String into unsigned int. | |
| operator int64_t () const | |
| Casts String into 64-bit int. | |
| operator uint64_t () const | |
| Casts String into unsigned 64-bit int. | |
| operator float () const | |
| Casts String into float. | |
| operator double () const | |
| Casts String into double. | |
| String | operator= (char *string) |
| Converts C-type string into String. More... | |
| String | operator= (const char *string) |
| Converts C-type string into String. More... | |
| String | operator= (const String &string) |
| Assigns String to this one. More... | |
| String | operator= (const bool b) |
| Converts bool into String. More... | |
| String | operator= (const short s) |
| Converts short into String. More... | |
| String | operator= (const unsigned short s) |
| Converts unsigned short into String. More... | |
| String | operator= (const int i) |
| Converts int into String. More... | |
| String | operator= (const unsigned int i) |
| Converts unsigned int into String. More... | |
| String | operator= (const int64_t i) |
| Converts 64-bit int into String. More... | |
| String | operator= (const uint64_t i) |
| Converts unsigned 64-bit int into String. More... | |
| String | operator= (const float f) |
| Converts float into String. More... | |
| String | operator= (const double d) |
| Converts double into String. More... | |
| void | operator+= (const char c) |
| Converts char into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (char *string) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const char *string) |
| Converts C-type string into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const String &string) |
| Concatenates a String at the end of this one. More... | |
| void | operator+= (const bool b) |
| Converts bool into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const short s) |
| Converts short into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const unsigned short s) |
| Converts unsigned short into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const int i) |
| Converts int into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const unsigned int i) |
| Converts unsigned int into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const int64_t i) |
| Converts 64-bit int into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const uint64_t i) |
| Converts unsigned 64-bit int into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const float f) |
| Converts float into a String and concatenates the new String at the end of this one. More... | |
| void | operator+= (const double d) |
| Converts double into a String and concatenates the new String at the end of this one. More... | |
| String | operator+ (const char c) const |
| Merges String with a character converted into String first. More... | |
| String | operator+ (char *string) const |
| Merges String with a C-type string converted into String first. More... | |
| String | operator+ (const char *string) const |
| Merges String with a C-type string converted into String first. More... | |
| String | operator+ (const String &string) const |
| Merges String with another String. More... | |
| bool | operator== (const char *s) const |
| Compares String for equivalency. More... | |
| bool | operator== (const String &string) const |
| Compares String for equivalency. More... | |
| bool | operator== (const bool b) const |
| Compares String for equivalency. More... | |
| bool | operator== (const short s) const |
| Compares String for equivalency. More... | |
| bool | operator== (const unsigned short s) const |
| Compares String for equivalency. More... | |
| bool | operator== (const int i) const |
| Compares String for equivalency. More... | |
| bool | operator== (const unsigned int i) const |
| Compares String for equivalency. More... | |
| bool | operator== (const int64_t i) const |
| Compares String for equivalency. More... | |
| bool | operator== (const uint64_t i) const |
| Compares String for equivalency. More... | |
| bool | operator== (const float f) const |
| Compares String for equivalency. More... | |
| bool | operator== (const double d) const |
| Compares String for equivalency. More... | |
| bool | operator!= (const char *s) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const String &string) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const bool b) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const short s) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const unsigned short s) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const int i) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const unsigned int i) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const int64_t i) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const uint64_t i) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const float f) const |
| Compares String for non-equivalency. More... | |
| bool | operator!= (const double d) const |
| Compares String for non-equivalency. More... | |
| bool | operator< (const String &string) const |
| Compares String for being less than another String. More... | |
| bool | operator> (const String &string) const |
| Compares String for being greater than another String. More... | |
| bool | operator<= (const String &string) const |
| Compares String for being less than or equal to another String. More... | |
| bool | operator>= (const String &string) const |
| Compares String for being greater than or equal to another String. More... | |
| const char * | cStr () const |
| Gets the C-string. More... | |
| std::ustring | uStr () const |
| Creates an unicode (unsigned int) string. More... | |
| std::wstring | wStr () const |
| Creates a wchar string. More... | |
| unsigned int | firstUnicodeChar (int index=0, int *byteCount=NULL) const |
| Converts first UTF8 character into the corresponding character code. More... | |
Static Public Member Functions | |
| static String | fromUnicode (unsigned int value) |
| Converts a unicode unsigned int to a UTF-8 string. More... | |
| static String | fromUnicode (wchar_t value) |
| Converts a unicode wchar to a UTF-8 string. More... | |
| static String | fromUnicode (const char value) |
| Converts a char to a UTF-8 string. More... | |
| static String | fromUnicode (unsigned char value) |
| Converts an unsigned char to a UTF-8 string. More... | |
| static String | fromUnicode (const unsigned int *string) |
| Converts a unicode unsigned int string to a UTF-8 string. More... | |
| static String | fromUnicode (const wchar_t *string) |
| Converts a unicode wchar string to a UTF-8 string. More... | |
| static String | fromUnicode (const char *string) |
| Converts a char string to a UTF-8 string. More... | |
| static String | fromUnicode (const unsigned char *string) |
| Converts an unsigned char string to a UTF-8 string. More... | |
| static String | fromUnicode (Array< unsigned int > chars) |
| Converts a unicode unsigned int Array to a UTF-8 string. More... | |
| static String | fromUnicode (Array< wchar_t > chars) |
| Converts a unicode wchar Array to a UTF-8 string. More... | |
| static String | fromUnicode (Array< char > chars) |
| Converts a char Array to a UTF-8 string. More... | |
| static String | fromUnicode (Array< unsigned char > chars) |
| Converts an unsigned char Array to a UTF-8 string. More... | |
Encapsulates std::string and adds high level methods.
| hltypes::String::String | ( | const char | c | ) |
Basic constructor.
| [in] | c | A character. |
| hltypes::String::String | ( | const char | c, |
| const int | times | ||
| ) |
Basic constructor.
| [in] | c | A character. |
| [in] | times | How many times c should be added. |
| hltypes::String::String | ( | const char * | string | ) |
Copy constructor.
| [in] | string | A C-type string. |
| hltypes::String::String | ( | const String & | string | ) |
Copy constructor.
| [in] | string | String to copy. |
| hltypes::String::String | ( | const char * | string, |
| const int | length | ||
| ) |
Copy constructor.
| [in] | string | A C-type string. |
| [in] | length | How many characters to copy. |
| hltypes::String::String | ( | const String & | string, |
| const int | length | ||
| ) |
Copy constructor.
| [in] | string | String to copy. |
| [in] | length | How many characters to copy. |
| hltypes::String::String | ( | const bool | b | ) |
Type constructor.
| [in] | b | Bool to create String of. |
| hltypes::String::String | ( | const short | s | ) |
Type constructor.
| [in] | s | Short integer to create String of. |
| hltypes::String::String | ( | const unsigned short | s | ) |
Type constructor.
| [in] | s | Unsigned short integer to create String of. |
| hltypes::String::String | ( | const int | i | ) |
Type constructor.
| [in] | i | Integer to create String of. |
| hltypes::String::String | ( | const unsigned int | i | ) |
Type constructor.
| [in] | i | Unsigned integer to create String of. |
| hltypes::String::String | ( | const int64_t | i | ) |
Type constructor.
| [in] | i | 64-bit integer to create String of. |
| hltypes::String::String | ( | const uint64_t | i | ) |
Type constructor.
| [in] | i | Unsigned 64-bit integer to create String of. |
| hltypes::String::String | ( | const float | f | ) |
Type constructor.
| [in] | f | Float to create String of. |
| hltypes::String::String | ( | const float | f, |
| int | precision | ||
| ) |
Type constructor.
| [in] | f | Float to create String of. |
| [in] | precision | The floating point precision to use. |
| hltypes::String::String | ( | const double | d | ) |
Type constructor.
| [in] | d | Double to create String of. |
| hltypes::String::String | ( | const double | d, |
| int | precision | ||
| ) |
Type constructor.
| [in] | d | Double to create String of. |
| [in] | precision | The floating point precision to use. |
| void hltypes::String::add | ( | const char | c | ) |
| void hltypes::String::add | ( | const char | c, |
| int | times | ||
| ) |
| void hltypes::String::add | ( | char * | string | ) |
| void hltypes::String::add | ( | char * | string, |
| int | length | ||
| ) |
| void hltypes::String::add | ( | const char * | string | ) |
| void hltypes::String::add | ( | const char * | string, |
| int | length | ||
| ) |
| void hltypes::String::add | ( | const String & | string | ) |
| void hltypes::String::add | ( | const String & | string, |
| int | length | ||
| ) |
| void hltypes::String::add | ( | const bool | b | ) |
| void hltypes::String::add | ( | const short | s | ) |
| void hltypes::String::add | ( | const unsigned short | s | ) |
| void hltypes::String::add | ( | const int | i | ) |
| void hltypes::String::add | ( | const unsigned int | i | ) |
| void hltypes::String::add | ( | const int64_t | i | ) |
| void hltypes::String::add | ( | const uint64_t | i | ) |
| void hltypes::String::add | ( | const float | f | ) |
| void hltypes::String::add | ( | const float | f, |
| int | precision | ||
| ) |
| void hltypes::String::add | ( | const double | d | ) |
| void hltypes::String::add | ( | const double | d, |
| int | precision | ||
| ) |
| bool hltypes::String::contains | ( | const char | c | ) | const |
| bool hltypes::String::contains | ( | const char * | string | ) | const |
| bool hltypes::String::contains | ( | const String & | string | ) | const |
| bool hltypes::String::containsAll | ( | const char * | string | ) | const |
| bool hltypes::String::containsAll | ( | const String & | string | ) | const |
| bool hltypes::String::containsAny | ( | const char * | string | ) | const |
| bool hltypes::String::containsAny | ( | const String & | string | ) | const |
| int hltypes::String::count | ( | const char | c | ) | const |
Counts the occurrences of a substring.
| [in] | c | The character to look for. |
| int hltypes::String::count | ( | const char * | string | ) | const |
Counts the occurrences of a substring.
| [in] | string | The C-type string to look for. |
| int hltypes::String::count | ( | const String & | string | ) | const |
Counts the occurrences of a substring.
| [in] | string | The String to look for. |
| const char* hltypes::String::cStr | ( | ) | const |
Gets the C-string.
| bool hltypes::String::endsWith | ( | const char * | string | ) | const |
Checks if the string ends with a specific string.
| [in] | string | The C-type string to check. |
| bool hltypes::String::endsWith | ( | const String & | string | ) | const |
| unsigned int hltypes::String::firstUnicodeChar | ( | int | index = 0 , |
| int * | byteCount = NULL |
||
| ) | const |
Converts first UTF8 character into the corresponding character code.
| [in] | index | The byte position of the first character in the string. |
| [out] | byteCount | Length of UTF8 character in bytes. |
|
static |
Converts a unicode unsigned int to a UTF-8 string.
| [in] | value | The unsigned int value. |
|
static |
Converts a unicode wchar to a UTF-8 string.
| [in] | value | The wchar value. |
|
static |
Converts a char to a UTF-8 string.
| [in] | value | The char. |
|
static |
Converts an unsigned char to a UTF-8 string.
| [in] | value | The unsigned char. |
|
static |
Converts a unicode unsigned int string to a UTF-8 string.
| [in] | string | The unsigned int string. |
|
static |
Converts a unicode wchar string to a UTF-8 string.
| [in] | string | The wchar string. |
|
static |
Converts a char string to a UTF-8 string.
| [in] | string | The char string. |
|
static |
Converts an unsigned char string to a UTF-8 string.
| [in] | string | The unsigned char string. |
Converts a unicode unsigned int Array to a UTF-8 string.
| [in] | chars | The unsigned int characters. |
Converts a unicode wchar Array to a UTF-8 string.
| [in] | chars | The wchar characters. |
Converts a char Array to a UTF-8 string.
| [in] | chars | The char characters. |
Converts an unsigned char Array to a UTF-8 string.
| [in] | chars | The unsigned char characters. |
| int hltypes::String::indexOf | ( | const char | c, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | c | Character to search for. |
| [in] | start | Starting index. |
| int hltypes::String::indexOf | ( | const char * | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | string | C-string to search for. |
| [in] | start | Starting index. |
| int hltypes::String::indexOf | ( | const String & | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | string | String to search for. |
| [in] | start | Starting index. |
| int hltypes::String::indexOfAny | ( | const char * | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of any character.
| [in] | string | Characters as C-string to search for. |
| [in] | start | Starting index. |
| int hltypes::String::indexOfAny | ( | const String & | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of any character.
| [in] | string | Characters as String to search for. |
| [in] | start | Starting index. |
| void hltypes::String::insertAt | ( | int | position, |
| const String & | string | ||
| ) |
| void hltypes::String::insertAt | ( | int | position, |
| const char * | string | ||
| ) |
| void hltypes::String::insertAt | ( | int | position, |
| const char | character, | ||
| int | times = 1 |
||
| ) |
Inserts a character into the String.
| [in] | position | Index where to insert. |
| [in] | character | Character to insert. |
| [in] | times | How many times to insert the character. |
| String hltypes::String::insertedAt | ( | int | position, |
| const char * | string | ||
| ) | const |
| String hltypes::String::insertedAt | ( | int | position, |
| const char | character, | ||
| int | times = 1 |
||
| ) | const |
| bool hltypes::String::isAscii | ( | ) | const |
Checks if string contains ASCII only characters.
| bool hltypes::String::isDigit | ( | ) | const |
Checks if all elements of the string contain only one digit '0'-'9'.
| bool hltypes::String::isFloat | ( | bool | requireDot = true | ) | const |
Checks if the string is a float.
| [in] | requireDot | If this parameter is false, then a decimal point is not required to designate a float value. |
| bool hltypes::String::isHex | ( | ) | const |
Checks if the string is a hexadecimal number, case ignored.
| bool hltypes::String::isInt | ( | ) | const |
Checks if the string is an integer.
| bool hltypes::String::isNumber | ( | ) | const |
Checks if the string is a number, positive or negative integer or float.
| String hltypes::String::lowered | ( | ) | const |
| hltypes::String::operator bool | ( | ) | const |
Casts String into bool.
| bool hltypes::String::operator!= | ( | const char * | s | ) | const |
| bool hltypes::String::operator!= | ( | const String & | string | ) | const |
| bool hltypes::String::operator!= | ( | const bool | b | ) | const |
| bool hltypes::String::operator!= | ( | const short | s | ) | const |
| bool hltypes::String::operator!= | ( | const unsigned short | s | ) | const |
| bool hltypes::String::operator!= | ( | const int | i | ) | const |
| bool hltypes::String::operator!= | ( | const unsigned int | i | ) | const |
| bool hltypes::String::operator!= | ( | const int64_t | i | ) | const |
| bool hltypes::String::operator!= | ( | const uint64_t | i | ) | const |
| bool hltypes::String::operator!= | ( | const float | f | ) | const |
| bool hltypes::String::operator!= | ( | const double | d | ) | const |
| String hltypes::String::operator() | ( | int | index | ) | const |
| String hltypes::String::operator() | ( | int | start, |
| int | count | ||
| ) | const |
Creates a substring.
| [in] | start | Start index of the substring. |
| [in] | count | Length of the substring. |
| String hltypes::String::operator() | ( | int | start, |
| int | count, | ||
| int | step | ||
| ) | const |
Creates a substring.
| [in] | start | Start index of the substring. |
| [in] | count | Length of the substring. |
| [in] | step | Every nth character only. |
| String hltypes::String::operator+ | ( | const char | c | ) | const |
| String hltypes::String::operator+ | ( | char * | string | ) | const |
| String hltypes::String::operator+ | ( | const char * | string | ) | const |
| void hltypes::String::operator+= | ( | const char | c | ) |
| void hltypes::String::operator+= | ( | char * | string | ) |
| void hltypes::String::operator+= | ( | const char * | string | ) |
| void hltypes::String::operator+= | ( | const String & | string | ) |
| void hltypes::String::operator+= | ( | const bool | b | ) |
| void hltypes::String::operator+= | ( | const short | s | ) |
| void hltypes::String::operator+= | ( | const unsigned short | s | ) |
| void hltypes::String::operator+= | ( | const int | i | ) |
| void hltypes::String::operator+= | ( | const unsigned int | i | ) |
| void hltypes::String::operator+= | ( | const int64_t | i | ) |
| void hltypes::String::operator+= | ( | const uint64_t | i | ) |
| void hltypes::String::operator+= | ( | const float | f | ) |
| void hltypes::String::operator+= | ( | const double | d | ) |
| bool hltypes::String::operator< | ( | const String & | string | ) | const |
| bool hltypes::String::operator<= | ( | const String & | string | ) | const |
| String hltypes::String::operator= | ( | char * | string | ) |
| String hltypes::String::operator= | ( | const char * | string | ) |
| String hltypes::String::operator= | ( | const bool | b | ) |
| String hltypes::String::operator= | ( | const short | s | ) |
| String hltypes::String::operator= | ( | const unsigned short | s | ) |
| String hltypes::String::operator= | ( | const int | i | ) |
| String hltypes::String::operator= | ( | const unsigned int | i | ) |
| String hltypes::String::operator= | ( | const int64_t | i | ) |
| String hltypes::String::operator= | ( | const uint64_t | i | ) |
| String hltypes::String::operator= | ( | const float | f | ) |
| String hltypes::String::operator= | ( | const double | d | ) |
| bool hltypes::String::operator== | ( | const char * | s | ) | const |
| bool hltypes::String::operator== | ( | const String & | string | ) | const |
| bool hltypes::String::operator== | ( | const bool | b | ) | const |
| bool hltypes::String::operator== | ( | const short | s | ) | const |
| bool hltypes::String::operator== | ( | const unsigned short | s | ) | const |
| bool hltypes::String::operator== | ( | const int | i | ) | const |
| bool hltypes::String::operator== | ( | const unsigned int | i | ) | const |
| bool hltypes::String::operator== | ( | const int64_t | i | ) | const |
| bool hltypes::String::operator== | ( | const uint64_t | i | ) | const |
| bool hltypes::String::operator== | ( | const float | f | ) | const |
| bool hltypes::String::operator== | ( | const double | d | ) | const |
| bool hltypes::String::operator> | ( | const String & | string | ) | const |
| bool hltypes::String::operator>= | ( | const String & | string | ) | const |
| char& hltypes::String::operator[] | ( | int | index | ) |
Returns character at position.
| [in] | index | Index of the character. |
| const char& hltypes::String::operator[] | ( | int | index | ) | const |
Returns character at position.
| [in] | index | Index of the character. |
| String hltypes::String::randomized | ( | ) | const |
| void hltypes::String::replace | ( | const String & | what, |
| const char * | withWhat | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | String substring. |
| [in] | withWhat | C-string string substitution. |
| void hltypes::String::replace | ( | const String & | what, |
| const char * | withWhat, | ||
| int | times | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | String substring. |
| [in] | withWhat | C-string string substitution. |
| [in] | times | How many times to replace the string maximally. |
| void hltypes::String::replace | ( | const String & | what, |
| const char | withWhat, | ||
| int | times = 1 |
||
| ) |
Replaces occurrences of a substring with a character.
| [in] | what | String substring. |
| [in] | withWhat | Character substitution. |
| [in] | times | How many times to insert the character. |
| void hltypes::String::replace | ( | const char * | what, |
| const String & | withWhat | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | C-string substring. |
| [in] | withWhat | String substitution. |
| void hltypes::String::replace | ( | const char * | what, |
| const String & | withWhat, | ||
| int | times | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | C-string substring. |
| [in] | withWhat | String substitution. |
| [in] | times | How many times to replace the string maximally. |
| void hltypes::String::replace | ( | const char * | what, |
| const char * | withWhat | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | C-string substring. |
| [in] | withWhat | C-string string substitution. |
| void hltypes::String::replace | ( | const char * | what, |
| const char * | withWhat, | ||
| int | times | ||
| ) |
Replaces occurrences of a substring with another substring.
| [in] | what | C-string substring. |
| [in] | withWhat | C-string string substitution. |
| [in] | times | How many times to replace the string maximally. |
| void hltypes::String::replace | ( | const char * | what, |
| const char | withWhat, | ||
| int | times = 1 |
||
| ) |
Replaces occurrences of a substring with a character.
| [in] | what | C-string substring. |
| [in] | withWhat | Character substitution. |
| [in] | times | How many times to insert the character. |
| void hltypes::String::replace | ( | const char | what, |
| const String & | withWhat | ||
| ) |
Replaces occurrences of a character with a substring.
| [in] | what | Character substring. |
| [in] | withWhat | String substitution. |
| void hltypes::String::replace | ( | const char | what, |
| const char * | withWhat | ||
| ) |
Replaces occurrences of a character with a substring.
| [in] | what | Character substring. |
| [in] | withWhat | C-string string substitution. |
| void hltypes::String::replace | ( | const char | what, |
| const char | withWhat, | ||
| int | times = 1 |
||
| ) |
Replaces occurrences of a character with a substring.
| [in] | what | Character substring. |
| [in] | withWhat | Character substitution. |
| [in] | times | How many times to insert the character. |
| void hltypes::String::replace | ( | int | position, |
| int | count, | ||
| const String & | string | ||
| ) |
Replaces a sequence of characters with a substring.
| [in] | position | Start index of character sequence. |
| [in] | count | How many characters to replace. |
| [in] | string | String substitution. |
| void hltypes::String::replace | ( | int | position, |
| int | count, | ||
| const char * | string | ||
| ) |
Replaces a sequence of characters with a substring.
| [in] | position | Start index of character sequence. |
| [in] | count | How many characters to replace. |
| [in] | string | C-string substitution. |
| void hltypes::String::replace | ( | int | position, |
| int | count, | ||
| const char | character, | ||
| int | times = 1 |
||
| ) |
Replaces a sequence of characters with a substring.
| [in] | position | Start index of character sequence. |
| [in] | count | How many characters to replace. |
| [in] | character | Character substitution. |
| [in] | times | How many times to insert the character. |
| String hltypes::String::replaced | ( | const char * | what, |
| const char * | withWhat | ||
| ) | const |
Replaces occurrences of a substring with another substring.
| [in] | what | C-string substring. |
| [in] | withWhat | C-string string substitution. |
| String hltypes::String::replaced | ( | const char * | what, |
| const char | withWhat, | ||
| int | times = 1 |
||
| ) | const |
Replaces occurrences of a substring with a character.
| [in] | what | C-string substring. |
| [in] | withWhat | Character substitution. |
| [in] | times | How many times to insert the character. |
| String hltypes::String::replaced | ( | const char | what, |
| const char * | withWhat | ||
| ) | const |
Replaces occurrences of a character with a substring.
| [in] | what | Character substring. |
| [in] | withWhat | C-string string substitution. |
| String hltypes::String::replaced | ( | const char | what, |
| const char | withWhat, | ||
| int | times = 1 |
||
| ) | const |
Replaces occurrences of a character with a substring.
| [in] | what | Character substring. |
| [in] | withWhat | Character substitution. |
| [in] | times | How many times to insert the character. |
| String hltypes::String::replaced | ( | int | position, |
| int | count, | ||
| const char * | string | ||
| ) | const |
Replaces a sequence of characters with a substring.
| [in] | position | Start index of character sequence. |
| [in] | count | How many characters to replace. |
| [in] | string | C-string substitution. |
| String hltypes::String::replaced | ( | int | position, |
| int | count, | ||
| const char | character, | ||
| int | times = 1 |
||
| ) | const |
Replaces a sequence of characters with a substring.
| [in] | position | Start index of character sequence. |
| [in] | count | How many characters to replace. |
| [in] | character | Character substitution. |
| [in] | times | How many times to insert the character. |
| int hltypes::String::rindexOf | ( | const char | c, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | c | Character to search for. |
| [in] | start | Starting index. |
| int hltypes::String::rindexOf | ( | const char * | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | string | C-string to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::rindexOf | ( | const String & | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | string | String to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::rindexOfAny | ( | const char * | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of any character searching from the back.
| [in] | string | Characters as C-string to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::rindexOfAny | ( | const String & | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of any character searching from the back.
| [in] | string | Characters as String to search for. |
| [in] | start | Starting index from the ending of the string. |
| void hltypes::String::set | ( | const char | c | ) |
Sets a character as C-type string.
| [in] | c | A character. |
| void hltypes::String::set | ( | const char | c, |
| const int | times | ||
| ) |
Sets a character as C-type string.
| [in] | c | A character. |
| [in] | times | How many times c should be added. |
| void hltypes::String::set | ( | char * | string | ) |
Sets String as C-type string.
| [in] | string | C-type string value. |
| void hltypes::String::set | ( | char * | string, |
| const int | length | ||
| ) |
Sets String as C-type string.
| [in] | string | C-type string value. |
| [in] | length | How many characters to copy. |
| void hltypes::String::set | ( | const char * | string | ) |
Sets String as C-type string.
| [in] | string | C-type string value. |
| void hltypes::String::set | ( | const char * | string, |
| const int | length | ||
| ) |
Sets String as C-type string.
| [in] | string | C-type string value. |
| [in] | length | How many characters to copy. |
| void hltypes::String::set | ( | const String & | string | ) |
| void hltypes::String::set | ( | const String & | string, |
| const int | length | ||
| ) |
| void hltypes::String::set | ( | const bool | b | ) |
Sets String as bool.
| [in] | b | Bool value. |
| void hltypes::String::set | ( | const short | s | ) |
Sets String as short.
| [in] | s | Short value. |
| void hltypes::String::set | ( | const unsigned short | s | ) |
Sets String as unsigned short.
| [in] | s | Unsigned short value. |
| void hltypes::String::set | ( | const int | i | ) |
Sets String as int.
| [in] | i | Int value. |
| void hltypes::String::set | ( | const unsigned int | i | ) |
Sets String as unsigned int.
| [in] | i | Unsigned int value. |
| void hltypes::String::set | ( | const int64_t | i | ) |
Sets String as 64-bit int.
| [in] | i | 64-bit int value. |
| void hltypes::String::set | ( | const uint64_t | i | ) |
Sets String as unsigned 64-bit int.
| [in] | i | Unsigned 64-bit int value. |
| void hltypes::String::set | ( | const float | f | ) |
Sets String as float.
| [in] | f | Float value. |
| void hltypes::String::set | ( | const float | f, |
| int | precision | ||
| ) |
| void hltypes::String::set | ( | const double | d | ) |
Sets String as double.
| [in] | d | Double value. |
| void hltypes::String::set | ( | const double | d, |
| int | precision | ||
| ) |
| int hltypes::String::size | ( | ) | const |
| Array<char> hltypes::String::split | ( | ) | const |
| bool hltypes::String::startsWith | ( | const char * | string | ) | const |
Checks if the string starts with a specific string.
| [in] | string | The C-type string to check. |
| bool hltypes::String::startsWith | ( | const String & | string | ) | const |
| String hltypes::String::subString | ( | int | start, |
| int | count | ||
| ) | const |
Creates a substring from this String.
| [in] | start | Start index of the substring. |
| [in] | count | Character length of the substring (byte-length, not UT8 character count). |
| String hltypes::String::subString | ( | int | start, |
| int | count, | ||
| int | step | ||
| ) | const |
Creates a substring from this String.
| [in] | start | Start index of the substring. |
| [in] | count | Character length of the substring (byte-length, not UT8 character count). |
| [in] | step | Every nth character only. |
| String hltypes::String::toHex | ( | ) | const |
Creates a string with characters converted using the %02X format.
| String hltypes::String::trimmed | ( | const char | c = ' ' | ) | const |
| String hltypes::String::trimmedLeft | ( | const char | c = ' ' | ) | const |
| String hltypes::String::trimmedRight | ( | const char | c = ' ' | ) | const |
| unsigned int hltypes::String::unhex | ( | ) | const |
Creates an unsigned int from hex value string.
| String hltypes::String::uppered | ( | ) | const |
| std::ustring hltypes::String::uStr | ( | ) | const |
Creates an unicode (unsigned int) string.
| int hltypes::String::utf8IndexOf | ( | const char | c, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | c | Character to search for. |
| [in] | start | Starting index. |
| int hltypes::String::utf8IndexOf | ( | const char * | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | string | C-string to search for. |
| [in] | start | Starting index. |
| int hltypes::String::utf8IndexOf | ( | const String & | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of a character.
| [in] | string | String to search for. |
| [in] | start | Starting index. |
| int hltypes::String::utf8IndexOfAny | ( | const char * | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of any character.
| [in] | string | Characters as C-string to search for. |
| [in] | start | Starting index. |
| int hltypes::String::utf8IndexOfAny | ( | const String & | string, |
| int | start = 0 |
||
| ) | const |
Finds the first index of any character.
| [in] | string | Characters as String to search for. |
| [in] | start | Starting index. |
| String hltypes::String::utf8Randomized | ( | ) | const |
| String hltypes::String::utf8Reversed | ( | ) | const |
Reverses UTF-8 string.
| int hltypes::String::utf8RindexOf | ( | const char | c, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | c | Character to search for. |
| [in] | start | Starting index. |
| int hltypes::String::utf8RindexOf | ( | const char * | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | string | C-string to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::utf8RindexOf | ( | const String & | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of a character searching from the back.
| [in] | string | String to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::utf8RindexOfAny | ( | const char * | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of any character searching from the back.
| [in] | string | Characters as C-string to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::utf8RindexOfAny | ( | const String & | string, |
| int | start = -1 |
||
| ) | const |
Finds the first index of any character searching from the back.
| [in] | string | Characters as String to search for. |
| [in] | start | Starting index from the ending of the string. |
| int hltypes::String::utf8Size | ( | ) | const |
| String hltypes::String::utf8SubString | ( | int | start, |
| int | count | ||
| ) | const |
Creates a substring from UTF8-indexed characters.
| [in] | start | Start index of the substring. |
| [in] | count | Character length of the substring (UT8 character count, not byte-length). |
| std::wstring hltypes::String::wStr | ( | ) | const |
Creates a wchar string.