Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (other than format) #76

Merged
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
959eecc
Merge branch 'formatReview', remote-tracking branch 'jpl-mac/timob-93…
Jun 9, 2012
4c3ab30
Merge branch 'formatReview', remote-tracking branch 'upstream/blackbe…
Jun 9, 2012
3c9409d
TIMOB-9395: Blackberry: implement decode/encode URIComponent
Jun 9, 2012
99130f8
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
Jun 11, 2012
a891e9c
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
Jun 13, 2012
8c9c499
Merge branch 'formatBranch'; commit '3c93b467' into formatBranch
Jun 18, 2012
ba505e6
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
Jun 18, 2012
e9f27f7
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
Jun 18, 2012
4510b27
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
Jun 21, 2012
014c5fd
Merge branch 'formatBranch', remote-tracking branch 'jpl-mac/timob-93…
Jun 21, 2012
0db5658
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
Jun 21, 2012
05bcf56
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
Jun 25, 2012
64d3732
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
Jun 25, 2012
ba500af
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
alexandergalstyan Jul 6, 2012
7f61a26
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
alexandergalstyan Jul 6, 2012
e9d0fa3
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
alexandergalstyan Jul 9, 2012
44dd635
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
alexandergalstyan Jul 9, 2012
16eb9a4
Merge branch 'formatBranch', remote-tracking branch 'upstream/blackbe…
alexandergalstyan Jul 11, 2012
1fe0911
TIMOB-9390: Blackberry: implement rest of String.formatXXX methods (o…
alexandergalstyan Jul 11, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions apidoc/Global/String/String.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ methods:
Supported length modifiers are `ll` for integer specifiers and `L` for double specifiers.
`j`, `t` and `L` (for integer) are not supported, others have no effect.

Numbered arguments `%n$` are NYI
'*' and '*m$' for width and precision are not supported. If they are used the behaviour is undefined.
returns:
type: String
summary: Formatted string.
Expand All @@ -47,7 +47,6 @@ methods:
summary: |
Formats a number into the currency format, including currency symbol, of the locale
configured for the system.
description: On BlackBerry NYI
returns:
type: String
summary: Formatted, localized string.
Expand All @@ -58,7 +57,6 @@ methods:

- name: formatDate
summary: Formats a date into the date format of the locale configured for the system.
description: On BlackBerry NYI
returns:
type: String
summary: Formatted, localized string.
Expand All @@ -77,7 +75,6 @@ methods:
summary: |
Formats a number into the decimal format, including decimal symbol, of the locale
configured for the system.
description: On BlackBerry NYI
returns:
type: String
summary: |
Expand All @@ -103,7 +100,6 @@ methods:
description: |
On Android, this method returns the short format.

On BlackBerry: NYI
returns:
type: String
summary: Formatted, localized string.
Expand Down
21 changes: 14 additions & 7 deletions blackberry/tibb/NativeObjectFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
* Please see the LICENSE included with this distribution for details.
*/

#include "TiCascadesApp.h"
#include "NativeObjectFactory.h"

#include "NativeActivityIndicatorObject.h"
#include "NativeButtonObject.h"
#include "NativeContainerObject.h"
#include "NativeDropDownObject.h"
#include "NativeImageViewObject.h"
#include "NativeLabelObject.h"
#include "NativeButtonObject.h"
#include "NativeSliderObject.h"
#include "NativeListViewObject.h"
#include "NativeProgressBarObject.h"
#include "NativeSliderObject.h"
#include "NativeStringInterface.h"
#include "NativeTextFieldObject.h"
#include "NativeImageViewObject.h"
#include "NativeListViewObject.h"
#include "NativeActivityIndicatorObject.h"
#include "NativeToggleButtonObject.h"
#include "NativeDropDownObject.h"
#include "TiCascadesApp.h"
#include <bb/cascades/Container>

using namespace bb::cascades;
Expand Down Expand Up @@ -134,3 +136,8 @@ NativeObject* NativeObjectFactory::getRootContainer() const
}
return rootContainer_;
}

const NativeStringInterface* NativeObjectFactory::getNativeStringInterface()
{
return NativeStringInterface::instance();
}
3 changes: 3 additions & 0 deletions blackberry/tibb/NativeObjectFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class NativeObject;
class NativeContainerObject;
class NativeStringInterface;
class TiCascadesApp;

/*
Expand All @@ -32,6 +33,8 @@ class NativeObjectFactory
void setEventContainerFactory(TiEventContainerFactory* eventContainerFactory);
TiEventContainerFactory* getEventContainerFactory() const;

static const NativeStringInterface* getNativeStringInterface();

private:
TiCascadesApp* cascadesApp_;
NativeObject* rootContainer_;
Expand Down