mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-28 18:09:31 -06:00
Add three tests in Tests/RunCMake/PrintHelpers, meant to verify basic functionality of the module. Tests are: * Variables: Test the results of a cmake_print_variables() call on two variables set within the test script. * Properties: Test cmake_print_properties() calls on a pair of SOURCES and a pair of TARGETS, printing some basic properties. * PropertiesSources: Specifically verify the results of a cmake_print_properties() call for the SOURCES property of a TARGET. Prior to the fix introduced alongside these tests, it was a known bug that such a request caused a FATAL_ERROR.
16 lines
283 B
C
16 lines
283 B
C
#include "rot13.h"
|
|
|
|
void rot13(char* in)
|
|
{
|
|
char* end = in + strlen(in);
|
|
for (char* c = in; c < end; c++) {
|
|
if (*c >= 'a' && *c <= 'z') {
|
|
*c += (*c < 'n') ? 13 : -13;
|
|
continue;
|
|
}
|
|
if (*c >= 'A' && *c <= 'Z') {
|
|
*c += (*c < 'N') ? 13 : -13;
|
|
}
|
|
}
|
|
}
|