mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Removed the (rather pointless) granularity value from the array objects. Converted a few macros into functions and other misc code clean-ups.
This commit is contained in:
parent
c368805559
commit
97035bb3a1
69 changed files with 218 additions and 369 deletions
|
|
@ -985,17 +985,6 @@ bool File::appendText (const String& text,
|
|||
return false;
|
||||
}
|
||||
|
||||
bool File::printf (const tchar* pf, ...) const
|
||||
{
|
||||
va_list list;
|
||||
va_start (list, pf);
|
||||
|
||||
String text;
|
||||
text.vprintf (pf, list);
|
||||
|
||||
return appendData ((const char*) text, text.length());
|
||||
}
|
||||
|
||||
bool File::replaceWithText (const String& textToWrite,
|
||||
const bool asUnicode,
|
||||
const bool writeUnicodeHeaderBytes) const
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ public:
|
|||
|
||||
@returns a stream that will write to this file (initially positioned at the
|
||||
end of the file), or 0 if the file can't be opened for some reason
|
||||
@see createInputStream, printf, appendData, appendText
|
||||
@see createInputStream, appendData, appendText
|
||||
*/
|
||||
FileOutputStream* createOutputStream (const int bufferSize = 0x8000) const;
|
||||
|
||||
|
|
@ -602,14 +602,6 @@ public:
|
|||
const String loadFileAsString() const;
|
||||
|
||||
//==============================================================================
|
||||
/** Writes text to the end of the file.
|
||||
|
||||
This will try to do a printf to the file.
|
||||
|
||||
@returns false if it can't write to the file for some reason
|
||||
*/
|
||||
bool printf (const tchar* format, ...) const;
|
||||
|
||||
/** Appends a block of binary data to the end of the file.
|
||||
|
||||
This will try to write the given buffer to the end of the file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue