MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Java_java_io_File_rename

Function Java_java_io_File_rename

classpath/java-io.cpp:498–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496#endif
497
498extern "C" JNIEXPORT jboolean JNICALL
499 Java_java_io_File_rename(JNIEnv* e, jclass, jstring old, jstring new_)
500{
501 string_t oldChars = getChars(e, old);
502 string_t newChars = getChars(e, new_);
503 if (oldChars) {
504 bool v;
505 if (newChars) {
506 v = RENAME(oldChars, newChars) == 0;
507
508 releaseChars(e, new_, newChars);
509 } else {
510 v = false;
511 }
512 releaseChars(e, old, oldChars);
513 return v;
514 } else {
515 return false;
516 }
517}
518
519extern "C" JNIEXPORT jboolean JNICALL
520 Java_java_io_File_isDirectory(JNIEnv* e, jclass, jstring path)

Callers

nothing calls this directly

Calls 2

getCharsFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected